Class ConnectionMetaData

java.lang.Object
com.swiftmq.swiftlet.net.ConnectionMetaData
Direct Known Subclasses:
ConnectorMetaData, IntraVMListenerMetaData, ListenerMetaData

public class ConnectionMetaData extends Object
A ConnectionMetaData object describes a connection and is a base class for other meta data classes.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2004, All Rights Reserved
  • Constructor Details

    • ConnectionMetaData

      protected ConnectionMetaData(Swiftlet swiftlet, long keepAliveInterval, String socketFactoryClass, ConnectionListener connectionListener, int inputBufferSize, int inputExtendSize, int outputBufferSize, int outputExtendSize, boolean useTcpNoDelay)
      Constructs a new ConnectionMetaData with default SMQP protocol handlers.
      Parameters:
      swiftlet - Swiftlet.
      keepAliveInterval - keepalive interval (for SMQP based connections only).
      socketFactoryClass - name of the socket factory class
      connectionListener - connection listener.
      inputBufferSize - input network buffer size
      inputExtendSize - input network extend size
      outputBufferSize - output network buffer size
      outputExtendSize - output network extend size
      useTcpNoDelay - use TCP No Delay
    • ConnectionMetaData

      protected ConnectionMetaData(Swiftlet swiftlet, long keepAliveInterval, String socketFactoryClass, ConnectionListener connectionListener, int inputBufferSize, int inputExtendSize, int outputBufferSize, int outputExtendSize, boolean useTcpNoDelay, ProtocolInputHandler protocolInputHandler, ProtocolOutputHandler protocolOutputHandler)
      Constructs a new ConnectionMetaData with custom protocol handlers.
      Parameters:
      swiftlet - Swiftlet.
      keepAliveInterval - keepalive interval (for SMQP based connections only).
      socketFactoryClass - name of the socket factory class
      connectionListener - connection listener.
      inputBufferSize - input network buffer size
      inputExtendSize - input network extend size
      outputBufferSize - output network buffer size
      outputExtendSize - output network extend size
      useTcpNoDelay - use TCP No Delay
      protocolInputHandler - protocol input handler.
      protocolOutputHandler - protocol output handler.
  • Method Details

    • getId

      public int getId()
      Returns the connection id.
      Returns:
      connection id.
    • setId

      public void setId(int id)
      Set a connection id. Internal use only.
      Parameters:
      id - connection id.
    • getSwiftlet

      public Swiftlet getSwiftlet()
      Returns the Swiftlet.
      Returns:
      Swiftlet.
    • getKeepAliveInterval

      public long getKeepAliveInterval()
      Returns the keep alive interval.
      Returns:
      keep alive interval.
    • getSocketFactoryClass

      public String getSocketFactoryClass()
      Returns the name of the socket factory class.
      Returns:
      name of the socket factory class.
    • getConnectionListener

      public ConnectionListener getConnectionListener()
      Returns the connection listener.
      Returns:
      connection listener.
    • getInputBufferSize

      public int getInputBufferSize()
      Returns the input buffer size.
      Returns:
      input buffer size.
    • getInputExtendSize

      public int getInputExtendSize()
      Returns the input extend size.
      Returns:
      input extend size.
    • getOutputBufferSize

      public int getOutputBufferSize()
      Returns the output buffer size.
      Returns:
      output buffer size.
    • getOutputExtendSize

      public int getOutputExtendSize()
      Returns the output extend size.
      Returns:
      output extend size.
    • isUseTcpNoDelay

      public boolean isUseTcpNoDelay()
      Returns the TCP No Delay setting
      Returns:
      TCP No Delay setting.
    • createProtocolInputHandler

      public ProtocolInputHandler createProtocolInputHandler()
      Returns the protocol input handler.
      Returns:
      protocol input handler.
    • createProtocolOutputHandler

      public ProtocolOutputHandler createProtocolOutputHandler()
      Returns the protocol input handler.
      Returns:
      protocol input handler.
    • toString

      public String toString()
      Overrides:
      toString in class Object