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.ObjectA 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 protectedConnectionMetaData(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.protectedConnectionMetaData(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 ProtocolInputHandlercreateProtocolInputHandler()Returns the protocol input handler.ProtocolOutputHandlercreateProtocolOutputHandler()Returns the protocol input handler.ConnectionListenergetConnectionListener()Returns the connection listener.intgetId()Returns the connection id.intgetInputBufferSize()Returns the input buffer size.intgetInputExtendSize()Returns the input extend size.longgetKeepAliveInterval()Returns the keep alive interval.intgetOutputBufferSize()Returns the output buffer size.intgetOutputExtendSize()Returns the output extend size.java.lang.StringgetSocketFactoryClass()Returns the name of the socket factory class.SwiftletgetSwiftlet()Returns the Swiftlet.booleanisUseTcpNoDelay()Returns the TCP No Delay settingvoidsetId(int id)Set a connection id.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-