Modifier and Type | Method and Description |
---|---|
default boolean |
allowOperationsAndEvents() |
default <K,V> CloseableIterator<Map.Entry<K,V>> |
entryIterator(RemoteCache<K,V> remoteCache,
IntSet segments,
int batchSize)
Creates an entry iterator with the given batch size if applicable.
|
int |
estimateExpirationSize(long lifespan,
TimeUnit lifespanTimeUnit,
long maxIdle,
TimeUnit maxIdleTimeUnit) |
int |
estimateHeaderSize(HeaderParams headerParams) |
Log |
getLog()
Logger for Hot Rod client codec
|
boolean |
isObjectStorageHinted(PingResponse pingResponse)
Read the response code for hints of object storage in the server.
|
default <K> CloseableIterator<K> |
keyIterator(RemoteCache<K,?> remoteCache,
OperationsFactory operationsFactory,
IntSet segments,
int batchSize)
Creates a key iterator with the given batch size if applicable.
|
AbstractClientEvent |
readCacheEvent(io.netty.buffer.ByteBuf buf,
Function<byte[],DataFormat> listenerDataFormat,
short eventTypeId,
ClassWhiteList whitelist,
SocketAddress serverAddress) |
HotRodCounterEvent |
readCounterEvent(io.netty.buffer.ByteBuf buf)
Reads a
HotRodCounterEvent with the listener-id . |
short |
readHeader(io.netty.buffer.ByteBuf buf,
double receivedOpCode,
HeaderParams params,
ChannelFactory channelFactory,
SocketAddress serverAddress)
Reads a response header from the transport and returns the status
of the response.
|
default MediaType |
readKeyType(io.netty.buffer.ByteBuf buf)
Reads the
MediaType of the key during initial ping of the cache. |
long |
readMessageId(io.netty.buffer.ByteBuf buf) |
default short |
readMeta(io.netty.buffer.ByteBuf buf)
Iteration read to tell if metadata is present for entry
|
short |
readOpCode(io.netty.buffer.ByteBuf buf) |
default int |
readProjectionSize(io.netty.buffer.ByteBuf buf)
Iteration read for projection size
|
default MediaType |
readValueType(io.netty.buffer.ByteBuf buf)
Reads the
MediaType of the key during initial ping of the cache. |
Object |
returnPossiblePrevValue(io.netty.buffer.ByteBuf buf,
short status,
DataFormat dataFormat,
int flags,
ClassWhiteList whitelist,
Marshaller marshaller) |
void |
writeClientListenerInterests(io.netty.buffer.ByteBuf buf,
Set<Class<? extends Annotation>> classes) |
void |
writeClientListenerParams(io.netty.buffer.ByteBuf buf,
ClientListener clientListener,
byte[][] filterFactoryParams,
byte[][] converterFactoryParams)
Writes client listener parameters
|
void |
writeExpirationParams(io.netty.buffer.ByteBuf buf,
long lifespan,
TimeUnit lifespanTimeUnit,
long maxIdle,
TimeUnit maxIdleTimeUnit)
Write lifespan/maxidle parameters.
|
HeaderParams |
writeHeader(io.netty.buffer.ByteBuf buf,
HeaderParams params)
Writes a request header with the given parameters to the transport and
returns an updated header parameters.
|
default void |
writeIteratorStartOperation(io.netty.buffer.ByteBuf buf,
IntSet segments,
String filterConverterFactory,
int batchSize,
boolean metadata,
byte[][] filterParameters) |
int estimateHeaderSize(HeaderParams headerParams)
HeaderParams writeHeader(io.netty.buffer.ByteBuf buf, HeaderParams params)
void writeClientListenerParams(io.netty.buffer.ByteBuf buf, ClientListener clientListener, byte[][] filterFactoryParams, byte[][] converterFactoryParams)
void writeExpirationParams(io.netty.buffer.ByteBuf buf, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
int estimateExpirationSize(long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
long readMessageId(io.netty.buffer.ByteBuf buf)
short readOpCode(io.netty.buffer.ByteBuf buf)
short readHeader(io.netty.buffer.ByteBuf buf, double receivedOpCode, HeaderParams params, ChannelFactory channelFactory, SocketAddress serverAddress)
AbstractClientEvent readCacheEvent(io.netty.buffer.ByteBuf buf, Function<byte[],DataFormat> listenerDataFormat, short eventTypeId, ClassWhiteList whitelist, SocketAddress serverAddress)
Object returnPossiblePrevValue(io.netty.buffer.ByteBuf buf, short status, DataFormat dataFormat, int flags, ClassWhiteList whitelist, Marshaller marshaller)
Log getLog()
void writeClientListenerInterests(io.netty.buffer.ByteBuf buf, Set<Class<? extends Annotation>> classes)
HotRodCounterEvent readCounterEvent(io.netty.buffer.ByteBuf buf)
HotRodCounterEvent
with the listener-id
.default boolean allowOperationsAndEvents()
default int readProjectionSize(io.netty.buffer.ByteBuf buf)
buf
- default short readMeta(io.netty.buffer.ByteBuf buf)
buf
- default void writeIteratorStartOperation(io.netty.buffer.ByteBuf buf, IntSet segments, String filterConverterFactory, int batchSize, boolean metadata, byte[][] filterParameters)
default <K> CloseableIterator<K> keyIterator(RemoteCache<K,?> remoteCache, OperationsFactory operationsFactory, IntSet segments, int batchSize)
K
- remoteCache
- operationsFactory
- segments
- batchSize
- default <K,V> CloseableIterator<Map.Entry<K,V>> entryIterator(RemoteCache<K,V> remoteCache, IntSet segments, int batchSize)
K
- V
- remoteCache
- segments
- batchSize
- default MediaType readKeyType(io.netty.buffer.ByteBuf buf)
MediaType
of the key during initial ping of the cache.default MediaType readValueType(io.netty.buffer.ByteBuf buf)
MediaType
of the key during initial ping of the cache.boolean isObjectStorageHinted(PingResponse pingResponse)
Copyright © 2021 JBoss by Red Hat. All rights reserved.