com.neeve.link
Class ILnkPeerEndpoint.SynchronousBlockingFlushContext

java.lang.Object
  extended by com.neeve.link.ILnkPeerEndpoint.FlushContext
      extended by com.neeve.link.ILnkPeerEndpoint.SynchronousBlockingFlushContext
Enclosing interface:
ILnkPeerEndpoint

public static final class ILnkPeerEndpoint.SynchronousBlockingFlushContext
extends ILnkPeerEndpoint.FlushContext

Context for synchronous blocking flushing through a peer endpoint..

The user provides either an instance of this class or null to the ILnkPeerEndpoint.enque(short, com.neeve.pkt.PktPacket, com.neeve.link.ILnkPeerEndpoint.FlushContext, int) and ILnkPeerEndpoint.flush(short, com.neeve.link.ILnkPeerEndpoint.FlushContext) methods to request for synchronous blocking flush semantics.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.neeve.link.ILnkPeerEndpoint.FlushContext
ILnkPeerEndpoint.FlushContext.FlushMode
 
Field Summary
 boolean complete
          Indicates whether the endpoint was flushed or not.
 
Fields inherited from class com.neeve.link.ILnkPeerEndpoint.FlushContext
flushMode
 
Constructor Summary
ILnkPeerEndpoint.SynchronousBlockingFlushContext()
          Constructor.
 
Method Summary
 void reset()
          Implemented FlushContext method.
 String toString()
          String representation.
 
Methods inherited from class com.neeve.link.ILnkPeerEndpoint.FlushContext
getAttachment, setAttachment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

complete

public boolean complete
Indicates whether the endpoint was flushed or not.

Upon successful return from the ILnkPeerEndpoint.enque(short, com.neeve.pkt.PktPacket, com.neeve.link.ILnkPeerEndpoint.FlushContext, int) method, this field is set to true in case the enque method implictly flushed the endpoint. A value of false indicates that the endpoint was not flushed. The value in this field is always equal to the value returned by the enque method.

Upon successful return from the ILnkPeerEndpoint.flush(short, com.neeve.link.ILnkPeerEndpoint.FlushContext) method, this member will always be true.

Constructor Detail

ILnkPeerEndpoint.SynchronousBlockingFlushContext

public ILnkPeerEndpoint.SynchronousBlockingFlushContext()
Constructor.

Method Detail

reset

public final void reset()
Implemented FlushContext method.

Specified by:
reset in class ILnkPeerEndpoint.FlushContext

toString

public final String toString()
String representation.

Overrides:
toString in class ILnkPeerEndpoint.FlushContext


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