Class GridNioFinishedFuture<R>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFinishedFuture<R>
-
- org.apache.ignite.internal.util.nio.GridNioFinishedFuture<R>
-
- All Implemented Interfaces:
IgniteInternalFuture<R>,GridNioFuture<R>
public class GridNioFinishedFuture<R> extends GridFinishedFuture<R> implements GridNioFuture<R>
Future that represents already completed result.
-
-
Constructor Summary
Constructors Constructor Description GridNioFinishedFuture(Throwable err)GridNioFinishedFuture(R res)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IgniteInClosure<IgniteException>ackClosure()booleanmessageThread()voidmessageThread(boolean msgThread)Sets flag indicating that message send future was created in thread that was processing a message.voidonAckReceived()The method will be called when ack received.booleanskipRecovery()StringtoString()-
Methods inherited from class org.apache.ignite.internal.util.future.GridFinishedFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.IgniteInternalFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
-
-
-
Method Detail
-
messageThread
public void messageThread(boolean msgThread)
Sets flag indicating that message send future was created in thread that was processing a message.- Specified by:
messageThreadin interfaceGridNioFuture<R>- Parameters:
msgThread-Trueif future was created in thread that is processing message.
-
messageThread
public boolean messageThread()
- Specified by:
messageThreadin interfaceGridNioFuture<R>- Returns:
Trueif future was created in thread that was processing message.
-
skipRecovery
public boolean skipRecovery()
- Specified by:
skipRecoveryin interfaceGridNioFuture<R>- Returns:
Trueif skip recovery for this operation.
-
onAckReceived
public void onAckReceived()
The method will be called when ack received.- Specified by:
onAckReceivedin interfaceGridNioFuture<R>
-
ackClosure
public IgniteInClosure<IgniteException> ackClosure()
- Specified by:
ackClosurein interfaceGridNioFuture<R>- Returns:
- Ack closure.
-
toString
public String toString()
- Overrides:
toStringin classGridFinishedFuture<R>
-
-