java.lang.Object
org.infinispan.client.hotrod.impl.protocol.Codec30
All Implemented Interfaces:
Codec
Direct Known Subclasses:
Codec31

public class Codec30 extends Object implements Codec
Since:
10.0
  • Field Details

  • Constructor Details

    • Codec30

      public Codec30()
  • Method Details

    • writeBloomFilter

      public void writeBloomFilter(io.netty.buffer.ByteBuf buf, int bloomFilterBits)
      Specified by:
      writeBloomFilter in interface Codec
    • readMessageId

      public long readMessageId(io.netty.buffer.ByteBuf buf)
      Specified by:
      readMessageId in interface Codec
    • writeHeader

      public void writeHeader(io.netty.buffer.ByteBuf buf, long messageId, ClientTopology clientTopology, HotRodOperation<?> operation)
      Description copied from interface: Codec
      Writes a request header with the given parameters to the transport and returns an updated header parameters.
      Specified by:
      writeHeader in interface Codec
    • writeHeader

      protected void writeHeader(io.netty.buffer.ByteBuf buf, long messageId, ClientTopology clientTopology, HotRodOperation<?> operation, byte version)
    • readCounterEvent

      public HotRodCounterEvent readCounterEvent(io.netty.buffer.ByteBuf buf)
      Description copied from interface: Codec
      Reads a HotRodCounterEvent with the listener-id.
      Specified by:
      readCounterEvent in interface Codec
    • writeMultimapSupportDuplicates

      public void writeMultimapSupportDuplicates(io.netty.buffer.ByteBuf buf, boolean supportsDuplicates)
      Specified by:
      writeMultimapSupportDuplicates in interface Codec
      Parameters:
      buf - , buffer which supportsDuplicates info will be written to.
      supportsDuplicates - , to see whether multimap cache supports duplicates or not.
    • returnPossiblePrevValue

      public Object returnPossiblePrevValue(io.netty.buffer.ByteBuf buf, short status, CacheUnmarshaller unmarshaller)
      Specified by:
      returnPossiblePrevValue in interface Codec
    • returnMetadataValue

      public <V> MetadataValue<V> returnMetadataValue(io.netty.buffer.ByteBuf buf, short status, CacheUnmarshaller unmarshaller)
      Specified by:
      returnMetadataValue in interface Codec
    • createRemovedEvent

      protected AbstractClientEvent createRemovedEvent(byte[] listenerId, Object key, boolean isRetried)
    • createModifiedEvent

      protected AbstractClientEvent createModifiedEvent(byte[] listenerId, Object key, long dataVersion, boolean isRetried)
    • createCreatedEvent

      protected AbstractClientEvent createCreatedEvent(byte[] listenerId, Object key, long dataVersion, boolean isRetried)
    • createCustomEvent

      protected AbstractClientEvent createCustomEvent(byte[] listenerId, Object eventData, ClientEvent.Type eventType, boolean isRetried)
    • checkForErrorsInResponseStatus

      public void checkForErrorsInResponseStatus(io.netty.buffer.ByteBuf buf, String cacheName, long messageId, short status, SocketAddress serverAddress)
      Specified by:
      checkForErrorsInResponseStatus in interface Codec
    • writeClientListenerParams

      public void writeClientListenerParams(io.netty.buffer.ByteBuf buf, ClientListener clientListener, byte[][] filterFactoryParams, byte[][] converterFactoryParams)
      Description copied from interface: Codec
      Writes client listener parameters
      Specified by:
      writeClientListenerParams in interface Codec
    • readCacheEvent

      public AbstractClientEvent readCacheEvent(io.netty.buffer.ByteBuf buf, long messageId, Function<byte[],DataFormat> listenerDataFormat, short eventTypeId, org.infinispan.commons.configuration.ClassAllowList allowList, SocketAddress serverAddress)
      Specified by:
      readCacheEvent in interface Codec
    • createExpiredEvent

      protected AbstractClientEvent createExpiredEvent(byte[] listenerId, Object key)
    • writeExpirationParams

      public void writeExpirationParams(io.netty.buffer.ByteBuf buf, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
      Description copied from interface: Codec
      Write lifespan/maxidle parameters.
      Specified by:
      writeExpirationParams in interface Codec
    • estimateExpirationSize

      public int estimateExpirationSize(long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
      Specified by:
      estimateExpirationSize in interface Codec
    • writeIteratorStartOperation

      public void writeIteratorStartOperation(io.netty.buffer.ByteBuf buf, org.infinispan.commons.util.IntSet segments, String filterConverterFactory, int batchSize, boolean metadata, byte[][] filterParameters)
      Specified by:
      writeIteratorStartOperation in interface Codec
    • writeClientListenerInterests

      public void writeClientListenerInterests(io.netty.buffer.ByteBuf buf, Set<Class<? extends Annotation>> classes)
      Specified by:
      writeClientListenerInterests in interface Codec
    • writeDataTypes

      protected void writeDataTypes(io.netty.buffer.ByteBuf buf, DataFormat dataFormat)