Package org.infinispan.server.hotrod
Class Encoder4x
java.lang.Object
org.infinispan.server.hotrod.Encoder4x
- All Implemented Interfaces:
VersionedEncoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBuf
authMechListResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Set<String> mechs) io.netty.buffer.ByteBuf
authResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, byte[] challenge) io.netty.buffer.ByteBuf
booleanResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, boolean result) io.netty.buffer.ByteBuf
bulkGetKeysResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CloseableIterator<byte[]> iterator) io.netty.buffer.ByteBuf
bulkGetResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int size, CacheSet<Map.Entry<byte[], byte[]>> entries) io.netty.buffer.ByteBuf
counterConfigurationResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CounterConfiguration configuration) io.netty.buffer.ByteBuf
counterNamesResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Collection<String> counterNames) io.netty.buffer.ByteBuf
emptyResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) io.netty.buffer.ByteBuf
errorResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, String message, OperationStatus status) io.netty.buffer.ByteBuf
getAllResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Map<byte[], byte[]> entries) io.netty.buffer.ByteBuf
getStreamResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int offset, CacheEntry<byte[], byte[]> entry) io.netty.buffer.ByteBuf
getWithMetadataResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> entry) static Encoder4x
instance()
io.netty.buffer.ByteBuf
iterationNextResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, IterableIterationResult iterationResult) io.netty.buffer.ByteBuf
iterationStartResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, String iterationId) io.netty.buffer.ByteBuf
longResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, long value) io.netty.buffer.ByteBuf
multimapCollectionResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, Collection<byte[]> values) io.netty.buffer.ByteBuf
multimapEntryResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], Collection<byte[]>> entry) io.netty.buffer.ByteBuf
notExecutedResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> prev) io.netty.buffer.ByteBuf
notExistResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel) io.netty.buffer.ByteBuf
pingResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) io.netty.buffer.ByteBuf
recoveryResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Collection<XidImpl> xids) io.netty.buffer.ByteBuf
statsResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Stats stats, NettyTransport transport, ClusterCacheStats clusterCacheStats) io.netty.buffer.ByteBuf
successResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> result) io.netty.buffer.ByteBuf
transactionResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int xaReturnCode) io.netty.buffer.ByteBuf
unsignedLongResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, long value) io.netty.buffer.ByteBuf
valueResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, byte[] prev) io.netty.buffer.ByteBuf
valueResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], byte[]> prev) io.netty.buffer.ByteBuf
valueWithVersionResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, byte[] value, long version) void
writeCounterEvent
(ClientCounterEvent event, io.netty.buffer.ByteBuf buffer) Writes aClientCounterEvent
, including its header, using a giver channel buffer.void
writeEvent
(org.infinispan.server.hotrod.Events.Event e, io.netty.buffer.ByteBuf buf) Write an event, including its header, using the given channel bufferprotected io.netty.buffer.ByteBuf
writeHeader
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) protected io.netty.buffer.ByteBuf
writeMetadataResponse
(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], byte[]> entry)
-
Constructor Details
-
Encoder4x
public Encoder4x()
-
-
Method Details
-
instance
-
valueResponse
public io.netty.buffer.ByteBuf valueResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], byte[]> prev) - Specified by:
valueResponse
in interfaceVersionedEncoder
-
writeEvent
public void writeEvent(org.infinispan.server.hotrod.Events.Event e, io.netty.buffer.ByteBuf buf) Description copied from interface:VersionedEncoder
Write an event, including its header, using the given channel buffer- Specified by:
writeEvent
in interfaceVersionedEncoder
-
authResponse
public io.netty.buffer.ByteBuf authResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, byte[] challenge) - Specified by:
authResponse
in interfaceVersionedEncoder
-
authMechListResponse
public io.netty.buffer.ByteBuf authMechListResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Set<String> mechs) - Specified by:
authMechListResponse
in interfaceVersionedEncoder
-
notExecutedResponse
public io.netty.buffer.ByteBuf notExecutedResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> prev) - Specified by:
notExecutedResponse
in interfaceVersionedEncoder
-
notExistResponse
public io.netty.buffer.ByteBuf notExistResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel) - Specified by:
notExistResponse
in interfaceVersionedEncoder
-
valueResponse
public io.netty.buffer.ByteBuf valueResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, byte[] prev) - Specified by:
valueResponse
in interfaceVersionedEncoder
-
successResponse
public io.netty.buffer.ByteBuf successResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> result) - Specified by:
successResponse
in interfaceVersionedEncoder
-
errorResponse
public io.netty.buffer.ByteBuf errorResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, String message, OperationStatus status) - Specified by:
errorResponse
in interfaceVersionedEncoder
-
bulkGetResponse
public io.netty.buffer.ByteBuf bulkGetResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int size, CacheSet<Map.Entry<byte[], byte[]>> entries) - Specified by:
bulkGetResponse
in interfaceVersionedEncoder
-
emptyResponse
public io.netty.buffer.ByteBuf emptyResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) - Specified by:
emptyResponse
in interfaceVersionedEncoder
-
pingResponse
public io.netty.buffer.ByteBuf pingResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) - Specified by:
pingResponse
in interfaceVersionedEncoder
-
statsResponse
public io.netty.buffer.ByteBuf statsResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Stats stats, NettyTransport transport, ClusterCacheStats clusterCacheStats) - Specified by:
statsResponse
in interfaceVersionedEncoder
-
valueWithVersionResponse
public io.netty.buffer.ByteBuf valueWithVersionResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, byte[] value, long version) - Specified by:
valueWithVersionResponse
in interfaceVersionedEncoder
-
getWithMetadataResponse
public io.netty.buffer.ByteBuf getWithMetadataResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CacheEntry<byte[], byte[]> entry) - Specified by:
getWithMetadataResponse
in interfaceVersionedEncoder
-
writeMetadataResponse
protected io.netty.buffer.ByteBuf writeMetadataResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], byte[]> entry) -
getStreamResponse
public io.netty.buffer.ByteBuf getStreamResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int offset, CacheEntry<byte[], byte[]> entry) - Specified by:
getStreamResponse
in interfaceVersionedEncoder
-
getAllResponse
public io.netty.buffer.ByteBuf getAllResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Map<byte[], byte[]> entries) - Specified by:
getAllResponse
in interfaceVersionedEncoder
-
bulkGetKeysResponse
public io.netty.buffer.ByteBuf bulkGetKeysResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CloseableIterator<byte[]> iterator) - Specified by:
bulkGetKeysResponse
in interfaceVersionedEncoder
-
iterationStartResponse
public io.netty.buffer.ByteBuf iterationStartResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, String iterationId) - Specified by:
iterationStartResponse
in interfaceVersionedEncoder
-
iterationNextResponse
public io.netty.buffer.ByteBuf iterationNextResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, IterableIterationResult iterationResult) - Specified by:
iterationNextResponse
in interfaceVersionedEncoder
-
counterConfigurationResponse
public io.netty.buffer.ByteBuf counterConfigurationResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, CounterConfiguration configuration) - Specified by:
counterConfigurationResponse
in interfaceVersionedEncoder
-
counterNamesResponse
public io.netty.buffer.ByteBuf counterNamesResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Collection<String> counterNames) - Specified by:
counterNamesResponse
in interfaceVersionedEncoder
-
multimapCollectionResponse
public io.netty.buffer.ByteBuf multimapCollectionResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, Collection<byte[]> values) - Specified by:
multimapCollectionResponse
in interfaceVersionedEncoder
-
multimapEntryResponse
public io.netty.buffer.ByteBuf multimapEntryResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status, CacheEntry<byte[], Collection<byte[]>> entry) - Specified by:
multimapEntryResponse
in interfaceVersionedEncoder
-
booleanResponse
public io.netty.buffer.ByteBuf booleanResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, boolean result) - Specified by:
booleanResponse
in interfaceVersionedEncoder
-
unsignedLongResponse
public io.netty.buffer.ByteBuf unsignedLongResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, long value) - Specified by:
unsignedLongResponse
in interfaceVersionedEncoder
-
longResponse
public io.netty.buffer.ByteBuf longResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, long value) - Specified by:
longResponse
in interfaceVersionedEncoder
-
transactionResponse
public io.netty.buffer.ByteBuf transactionResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, int xaReturnCode) - Specified by:
transactionResponse
in interfaceVersionedEncoder
-
recoveryResponse
public io.netty.buffer.ByteBuf recoveryResponse(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, Collection<XidImpl> xids) - Specified by:
recoveryResponse
in interfaceVersionedEncoder
-
errorStatus
- Specified by:
errorStatus
in interfaceVersionedEncoder
-
writeHeader
protected io.netty.buffer.ByteBuf writeHeader(HotRodHeader header, HotRodServer server, io.netty.channel.Channel channel, OperationStatus status) -
writeCounterEvent
Description copied from interface:VersionedEncoder
Writes aClientCounterEvent
, including its header, using a giver channel buffer.- Specified by:
writeCounterEvent
in interfaceVersionedEncoder
-