Package org.epics.ca.impl.requests
Class WriteNotifyRequest<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<Status>
-
- org.epics.ca.impl.requests.WriteNotifyRequest<T>
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<Status>,java.util.concurrent.Future<Status>,NotifyResponseRequest,ResponseRequest
public class WriteNotifyRequest<T> extends java.util.concurrent.CompletableFuture<Status> implements NotifyResponseRequest
CA write 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.
-
Constructor Summary
Constructors Constructor Description WriteNotifyRequest(ChannelImpl<?> channel, Transport transport, int sid, TypeSupports.TypeSupport<T> typeSupport, T value, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel response request (always to be called to complete/destroy).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.
-
-
Constructor Detail
-
WriteNotifyRequest
public WriteNotifyRequest(ChannelImpl<?> channel, Transport transport, int sid, TypeSupports.TypeSupport<T> typeSupport, T value, int count)
- Parameters:
channel- the channel.transport- the transport.sid- the CA Server ID.typeSupport- reference to an object which can provide support for this type.value- the value.count- the element count.
-
-
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.
-
-