Package org.epics.ca.impl.requests
Class ReadNotifyRequest<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<T>
-
- org.epics.ca.impl.requests.ReadNotifyRequest<T>
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<T>,java.util.concurrent.Future<T>,NotifyResponseRequest,ResponseRequest
public class ReadNotifyRequest<T> extends java.util.concurrent.CompletableFuture<T> implements NotifyResponseRequest
CA read notify.
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelImpl<?>channelChannel.protected ContextImplcontextContext.protected intioidI/O ID given by the context when registered.protected intsidChannel server ID.protected TypeSupports.TypeSupport<T>typeSupportType support.
-
Constructor Summary
Constructors Constructor Description ReadNotifyRequest(ChannelImpl<?> channel, Transport transport, int sid, TypeSupports.TypeSupport<T> typeSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel response request (always to be called to complete/destroy).protected voidcompleteExceptionally(Status status, java.lang.String message)voidexception(int errorCode, java.lang.String errorMessage)Exception response notification.intgetIOID()Get I/O ID.voidresponse(int status, short dataType, int dataCount, java.nio.ByteBuffer dataPayloadBuffer)Notification response.-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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, whenCompleteAsync
-
-
-
-
Field Detail
-
context
protected final ContextImpl context
Context.
-
ioid
protected final int ioid
I/O ID given by the context when registered.
-
sid
protected final int sid
Channel server ID.
-
channel
protected final ChannelImpl<?> channel
Channel.
-
typeSupport
protected final TypeSupports.TypeSupport<T> typeSupport
Type support.
-
-
Constructor Detail
-
ReadNotifyRequest
public ReadNotifyRequest(ChannelImpl<?> channel, Transport transport, int sid, TypeSupports.TypeSupport<T> typeSupport)
- Parameters:
channel- the channel.transport- the transport.sid- the CA Server ID.typeSupport- reference to an object which can provide support for this type.
-
-
Method Detail
-
getIOID
public int getIOID()
Description copied from interface:ResponseRequestGet I/O ID.- Specified by:
getIOIDin interfaceResponseRequest- Returns:
- ioid
-
response
public void response(int status, short dataType, int dataCount, java.nio.ByteBuffer dataPayloadBuffer)Description copied from interface:NotifyResponseRequestNotification response.- Specified by:
responsein interfaceNotifyResponseRequest- Parameters:
status- the CA status code.dataType- the CA data type.dataCount- the CA channel element count.dataPayloadBuffer- the buffer with the payload
-
cancel
public void cancel()
Description copied from interface:ResponseRequestCancel response request (always to be called to complete/destroy).- Specified by:
cancelin interfaceResponseRequest
-
exception
public void exception(int errorCode, java.lang.String errorMessage)Description copied from interface:ResponseRequestException response notification.- Specified by:
exceptionin interfaceResponseRequest- Parameters:
errorCode- exception code.errorMessage- received detailed message.
-
completeExceptionally
protected void completeExceptionally(Status status, java.lang.String message)
-
-