Class WriteNotifyRequest<T>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture

        java.util.concurrent.CompletableFuture.AsynchronousCompletionTask
    • Field Summary

      Fields 
      Modifier and Type Field 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Cancel response request (always to be called to complete/destroy).
      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.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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

      • response

        public void response​(int status,
                             short dataType,
                             int dataCount,
                             java.nio.ByteBuffer dataPayloadBuffer)
        Description copied from interface: NotifyResponseRequest
        Notification response.
        Specified by:
        response in interface NotifyResponseRequest
        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: ResponseRequest
        Cancel response request (always to be called to complete/destroy).
        Specified by:
        cancel in interface ResponseRequest
      • exception

        public void exception​(int errorCode,
                              java.lang.String errorMessage)
        Description copied from interface: ResponseRequest
        Exception response notification.
        Specified by:
        exception in interface ResponseRequest
        Parameters:
        errorCode - exception code.
        errorMessage - received detailed message.