Package com.swiftmq.swiftlet.net
Class ConnectionMetaData
java.lang.Object
com.swiftmq.swiftlet.net.ConnectionMetaData
- Direct Known Subclasses:
ConnectorMetaData
,IntraVMListenerMetaData
,ListenerMetaData
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
ConstructorsModifierConstructorDescriptionprotected
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.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the protocol input handler.Returns the protocol input handler.Returns the connection listener.int
getId()
Returns the connection id.int
Returns the input buffer size.int
Returns the input extend size.long
Returns the keep alive interval.int
Returns the output buffer size.int
Returns the output extend size.Returns the name of the socket factory class.Returns the Swiftlet.boolean
Returns the TCP No Delay settingvoid
setId
(int id) Set a connection id.toString()
-
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 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, 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 sizeuseTcpNoDelay
- use TCP No DelayprotocolInputHandler
- 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
Returns the Swiftlet.- Returns:
- Swiftlet.
-
getKeepAliveInterval
public long getKeepAliveInterval()Returns the keep alive interval.- Returns:
- keep alive interval.
-
getSocketFactoryClass
Returns the name of the socket factory class.- Returns:
- name of the socket factory class.
-
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
Returns the protocol input handler.- Returns:
- protocol input handler.
-
createProtocolOutputHandler
Returns the protocol input handler.- Returns:
- protocol input handler.
-
toString
-