com.neeve.link
Class ILnkPeerEndpoint.FlushContext

java.lang.Object
  extended by com.neeve.link.ILnkPeerEndpoint.FlushContext
Direct Known Subclasses:
ILnkPeerEndpoint.AsynchronousFlushContext, ILnkPeerEndpoint.SynchronousBlockingFlushContext, ILnkPeerEndpoint.SynchronousNonBlockingFlushContext
Enclosing interface:
ILnkPeerEndpoint

public abstract static class ILnkPeerEndpoint.FlushContext
extends Object

Base class for all flushing contexts.

A peer endpoint supports multiple flushing modes. When the user enques a packet in or flushes the endpoint, it needs to specify the flush mode to use for the flush. Each flush mode is represented by a flush context that holds flush mode specific information to be returned to the user. This class is the base class for all flush contexts (modes)


Nested Class Summary
static class ILnkPeerEndpoint.FlushContext.FlushMode
          Flush modes.
 
Field Summary
 ILnkPeerEndpoint.FlushContext.FlushMode flushMode
          The flush mode.
 
Method Summary
 Object getAttachment()
          Get the object attached to a flush context.
abstract  void reset()
          Resets the flush context before use.
 ILnkPeerEndpoint.FlushContext setAttachment(Object object)
          Attach an opaque object to a flush context.
 String toString()
          String representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

flushMode

public final ILnkPeerEndpoint.FlushContext.FlushMode flushMode
The flush mode.

Method Detail

reset

public abstract void reset()
Resets the flush context before use.


setAttachment

public final ILnkPeerEndpoint.FlushContext setAttachment(Object object)
Attach an opaque object to a flush context.


getAttachment

public final Object getAttachment()
Get the object attached to a flush context.


toString

public String toString()
String representation.

Overrides:
toString in class Object


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.