Class ConnectionMetaData

  • Direct Known Subclasses:
    ConnectorMetaData, IntraVMListenerMetaData, ListenerMetaData

    public class ConnectionMetaData
    extends java.lang.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 Detail

      • ConnectionMetaData

        protected ConnectionMetaData​(Swiftlet swiftlet,
                                     long keepAliveInterval,
                                     java.lang.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,
                                     java.lang.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
        protocolInputHandler - protocol input handler.
        protocolOutputHandler - protocol output handler.
        useTcpNoDelay - use TCP No Delay
    • Method Detail

      • 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 java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object