Class MemcachedResponse

java.lang.Object
org.infinispan.server.memcached.MemcachedResponse
Direct Known Subclasses:
BinaryResponse, TextResponse

public abstract class MemcachedResponse extends Object
  • Field Details

    • responseBytes

      protected int responseBytes
  • Constructor Details

    • MemcachedResponse

      public MemcachedResponse(CompletionStage<?> response, Header header, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
    • MemcachedResponse

      public MemcachedResponse(Throwable failure, Header header)
  • Method Details

    • getResponse

      public CompletionStage<?> getResponse()
    • isSuccessful

      public boolean isSuccessful()
    • writeResponse

      public void writeResponse(Object response, ByteBufPool allocator)
    • writeFailure

      public abstract void writeFailure(Throwable throwable, ByteBufPool allocator)
    • writeFailure

      public void writeFailure(ByteBufPool allocator)
    • useErrorMessage

      protected void useErrorMessage(String message)
    • flushed

      public void flushed(io.netty.channel.ChannelFuture future)