Package com.swiftmq.swiftlet.net
Class ConnectionMetaData
- java.lang.Object
-
- com.swiftmq.swiftlet.net.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 Summary
Constructors Modifier Constructor Description 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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtocolInputHandler
createProtocolInputHandler()
Returns the protocol input handler.ProtocolOutputHandler
createProtocolOutputHandler()
Returns the protocol input handler.ConnectionListener
getConnectionListener()
Returns the connection listener.int
getId()
Returns the connection id.int
getInputBufferSize()
Returns the input buffer size.int
getInputExtendSize()
Returns the input extend size.long
getKeepAliveInterval()
Returns the keep alive interval.int
getOutputBufferSize()
Returns the output buffer size.int
getOutputExtendSize()
Returns the output extend size.java.lang.String
getSocketFactoryClass()
Returns the name of the socket factory class.Swiftlet
getSwiftlet()
Returns the Swiftlet.boolean
isUseTcpNoDelay()
Returns the TCP No Delay settingvoid
setId(int id)
Set a connection id.java.lang.String
toString()
-
-
-
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 classconnectionListener
- connection listener.inputBufferSize
- input network buffer sizeinputExtendSize
- input network extend sizeoutputBufferSize
- output network buffer sizeoutputExtendSize
- output network extend sizeuseTcpNoDelay
- 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 classconnectionListener
- connection listener.inputBufferSize
- input network buffer sizeinputExtendSize
- input network extend sizeoutputBufferSize
- output network buffer sizeoutputExtendSize
- output network extend sizeprotocolInputHandler
- 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 classjava.lang.Object
-
-