public abstract class AbstractFuture<V> extends Object implements IFuture<V>
IFuture
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractFuture(ISession session)
Constructs a base implementation with the specified session.
|
Modifier and Type | Method and Description |
---|---|
V |
getNow()
Returns
null . |
ISession |
getSession()
Returns the session this future is associated with.
|
boolean |
isCancelled()
Tells if the operation associated with this future was cancelled
before it completed normally.
|
boolean |
isDone()
Tells if if the operation associated with this future completed.
|
boolean |
isFailed()
Tells if the operation associated with this future was completed
with a failure.
|
boolean |
isSuccessful()
Tells if the operation associated with this future was completed
successfully.
|
String |
toString()
Returns a string representation of this future.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, sync, sync, sync, syncUninterruptibly, syncUninterruptibly, syncUninterruptibly
protected AbstractFuture(ISession session)
session
- the session this future is associated withpublic ISession getSession()
IFuture
getSession
in interface IFuture<V>
public String toString()
public boolean isDone()
public boolean isCancelled()
isCancelled
in interface Future<V>
true
if the operation was cancelledpublic boolean isSuccessful()
IFuture
isSuccessful
in interface IFuture<V>
true
if and only if the associated operation was
completed successfullypublic boolean isFailed()
IFuture
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.