Package org.infinispan.server.memcached
Class MemcachedResponse
java.lang.Object
org.infinispan.server.memcached.MemcachedResponse
- Direct Known Subclasses:
BinaryResponse
,TextResponse
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMemcachedResponse
(Throwable failure, Header header) MemcachedResponse
(CompletionStage<?> response, Header header, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flushed
(io.netty.channel.ChannelFuture future) boolean
protected void
useErrorMessage
(String message) abstract void
writeFailure
(Throwable throwable, ByteBufPool allocator) void
writeFailure
(ByteBufPool allocator) void
writeResponse
(Object response, ByteBufPool allocator)
-
Field Details
-
header
-
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
-
-
Method Details
-
getResponse
-
isSuccessful
public boolean isSuccessful() -
writeResponse
-
writeFailure
-
writeFailure
-
useErrorMessage
-
flushed
public void flushed(io.netty.channel.ChannelFuture future)
-