public class ReadNotifyRequest<T> extends java.util.concurrent.CompletableFuture<T> implements NotifyResponseRequest
| Modifier and Type | Field and Description |
|---|---|
protected ChannelImpl<?> |
channel
Channel.
|
protected ContextImpl |
context
Context.
|
protected int |
ioid
I/O ID given by the context when registered.
|
protected int |
sid
Channel server ID.
|
protected TypeSupports.TypeSupport<T> |
typeSupport
Type support.
|
| Constructor and Description |
|---|
ReadNotifyRequest(ChannelImpl<?> channel,
Transport transport,
int sid,
TypeSupports.TypeSupport<T> typeSupport) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel response request (always to be called to complete/destroy).
|
protected void |
completeExceptionally(Status status,
java.lang.String message) |
void |
exception(int errorCode,
java.lang.String errorMessage)
Exception response notification.
|
int |
getIOID()
Get I/O ID.
|
void |
response(int status,
short dataType,
int dataCount,
java.nio.ByteBuffer dataPayloadBuffer)
Notification response.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncprotected final ContextImpl context
protected final int ioid
protected final int sid
protected final ChannelImpl<?> channel
protected final TypeSupports.TypeSupport<T> typeSupport
public ReadNotifyRequest(ChannelImpl<?> channel, Transport transport, int sid, TypeSupports.TypeSupport<T> typeSupport)
channel - the channel.transport - the transport.sid - the CA Server ID.typeSupport - reference to an object which can provide support for this type.public int getIOID()
ResponseRequestgetIOID in interface ResponseRequestpublic void response(int status,
short dataType,
int dataCount,
java.nio.ByteBuffer dataPayloadBuffer)
NotifyResponseRequestresponse in interface NotifyResponseRequeststatus - the CA status code.dataType - the CA data type.dataCount - the CA channel element count.dataPayloadBuffer - the buffer with the payloadpublic void cancel()
ResponseRequestcancel in interface ResponseRequestpublic void exception(int errorCode,
java.lang.String errorMessage)
ResponseRequestexception in interface ResponseRequesterrorCode - exception code.errorMessage - received detailed message.protected void completeExceptionally(Status status, java.lang.String message)