Class ListenableFuture
A future to which listeners can be attached.
Inheritance
System.Object
ListenableFuture
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: com.lightstreamer.util
Assembly: Lightstreamer_DotNet_Client_Unified.dll
Syntax
public class ListenableFuture
Methods
abort()
Aborts the operation. Attached handlers are not executed.
Declaration
public virtual ListenableFuture abort()
Returns
Type | Description |
---|---|
ListenableFuture |
fulfill()
Sets the future as fulfilled.
Declaration
public virtual ListenableFuture fulfill()
Returns
Type | Description |
---|---|
ListenableFuture |
fulfilled()
Returns a fulfilled future.
Declaration
public static ListenableFuture fulfilled()
Returns
Type | Description |
---|---|
ListenableFuture |
getState()
Declaration
public virtual ListenableFuture.State getState()
Returns
Type | Description |
---|---|
ListenableFuture.State |
onFulfilled(IRunnable)
Adds a handler for the successful case.
Declaration
public virtual ListenableFuture onFulfilled(IRunnable listener)
Parameters
Type | Name | Description |
---|---|---|
DotNetty.Common.Concurrency.IRunnable | listener |
Returns
Type | Description |
---|---|
ListenableFuture |
onRejected(IRunnable)
Adds a handler for the error case.
Declaration
public virtual ListenableFuture onRejected(IRunnable listener)
Parameters
Type | Name | Description |
---|---|---|
DotNetty.Common.Concurrency.IRunnable | listener |
Returns
Type | Description |
---|---|
ListenableFuture |
reject()
Sets the future as rejected.
Declaration
public virtual ListenableFuture reject()
Returns
Type | Description |
---|---|
ListenableFuture |
rejected()
Returns a rejected future.
Declaration
public static ListenableFuture rejected()
Returns
Type | Description |
---|---|
ListenableFuture |