org.infinispan.client.hotrod.impl.protocol
Class Codec11

java.lang.Object
  extended by org.infinispan.client.hotrod.impl.protocol.Codec10
      extended by org.infinispan.client.hotrod.impl.protocol.Codec11
All Implemented Interfaces:
Codec

public class Codec11
extends Codec10

A Hot Rod encoder/decoder for version 1.1 of the protocol.

Since:
5.1
Author:
Galder ZamarreƱo

Constructor Summary
Codec11()
           
 
Method Summary
protected  Map<SocketAddress,Set<Integer>> computeNewHashes(Transport transport, Log localLog, int newTopologyId, int numKeyOwners, short hashFunctionVersion, int hashSpace, int clusterSize)
           
 Log getLog()
          Logger for Hot Rod client codec
 HeaderParams writeHeader(Transport transport, HeaderParams params)
          Writes a request header with the given parameters to the transport and returns an updated header parameters.
 
Methods inherited from class org.infinispan.client.hotrod.impl.protocol.Codec10
readHeader, readNewTopologyAndHash, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Codec11

public Codec11()
Method Detail

writeHeader

public HeaderParams writeHeader(Transport transport,
                                HeaderParams params)
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
Overrides:
writeHeader in class Codec10

computeNewHashes

protected Map<SocketAddress,Set<Integer>> computeNewHashes(Transport transport,
                                                           Log localLog,
                                                           int newTopologyId,
                                                           int numKeyOwners,
                                                           short hashFunctionVersion,
                                                           int hashSpace,
                                                           int clusterSize)
Overrides:
computeNewHashes in class Codec10

getLog

public Log getLog()
Description copied from interface: Codec
Logger for Hot Rod client codec

Specified by:
getLog in interface Codec
Overrides:
getLog in class Codec10

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.