Class BinaryConnectionFactory

All Implemented Interfaces:
ConnectionFactory

public class BinaryConnectionFactory extends DefaultConnectionFactory
Default connection factory for binary wire protocol connections.
  • Constructor Details

    • BinaryConnectionFactory

      public BinaryConnectionFactory()
      Create a BinaryConnectionFactory with the default parameters.
    • BinaryConnectionFactory

      public BinaryConnectionFactory(ClientMode clientMode)
      Create a BinaryConnectionFactory with the given clientMode.
      Parameters:
      clientMode -
    • BinaryConnectionFactory

      public BinaryConnectionFactory(int len, int bufSize)
      Create a BinaryConnectionFactory with the given parameters
      Parameters:
      len - the queue length.
      bufSize - the buffer size
    • BinaryConnectionFactory

      public BinaryConnectionFactory(ClientMode clientMode, int len, int bufSize)
      Create a BinaryConnectionFactory with the given parameters
      Parameters:
      clientMode - the mode of the client to indicate whether dynamic server list management is done.
      len - the queue length.
      bufSize - the buffer size
    • BinaryConnectionFactory

      public BinaryConnectionFactory(int len, int bufSize, HashAlgorithm hash)
      Construct a BinaryConnectionFactory with the given parameters.
      Parameters:
      len - the queue length.
      bufSize - the buffer size
      hash - the algorithm to use for hashing
    • BinaryConnectionFactory

      public BinaryConnectionFactory(ClientMode clientMode, int len, int bufSize, HashAlgorithm hash)
      Construct a BinaryConnectionFactory with the given parameters.
      Parameters:
      clientMode - the mode of the client to indicate whether dynamic server list management is done.
      len - the queue length.
      bufSize - the buffer size
      hash - the algorithm to use for hashing
  • Method Details