org.objectweb.dream.channel
Class MultiConnTCPChannelOutImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.channel.AbstractTCPChannelOutImpl
org.objectweb.dream.channel.MultiConnTCPChannelOutImpl
- All Implemented Interfaces:
- AttributeController, BindingController, ChannelOutAttributeController, LifeCycleController, Loggable, MultiConnTCPChannelOutAttributeController, MultiDestinationChannelOutAttributeController, Push
- public class MultiConnTCPChannelOutImpl
- extends AbstractTCPChannelOutImpl
- implements MultiConnTCPChannelOutAttributeController
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
chunkName
protected String chunkName
openConnections
protected Map openConnections
reusableKey
protected MultiConnTCPChannelOutImpl.ConnectionKey reusableKey
maxConnection
protected int maxConnection
soTimeout
protected int soTimeout
MultiConnTCPChannelOutImpl
public MultiConnTCPChannelOutImpl()
push
public void push(Message message,
Map context)
throws PushException
- Specified by:
push
in interface Push
- Throws:
PushException
- See Also:
Push.push(Message, Map)
setSocketOption
protected void setSocketOption(Socket sock)
throws SocketException
- Description copied from class:
AbstractTCPChannelOutImpl
- Configures this socket using the socket options established for this
factory. It may be overloaded in subclass, in order to handle particular
subclasses of sockets
- Overrides:
setSocketOption
in class AbstractTCPChannelOutImpl
- Parameters:
sock
- the socket.
- Throws:
SocketException
- for networking errors- See Also:
AbstractTCPChannelOutImpl.setSocketOption(Socket)
getDestinationChunkName
public String getDestinationChunkName()
- Description copied from interface:
MultiDestinationChannelOutAttributeController
- Returns the name of the
IPChannelDestinationChunk
chunk used by ChannelOut.
- Specified by:
getDestinationChunkName
in interface MultiDestinationChannelOutAttributeController
- Returns:
- the name of the
IPChannelDestinationChunk
chunk used by ChannelOut. - See Also:
MultiDestinationChannelOutAttributeController.getDestinationChunkName()
setDestinationChunkName
public void setDestinationChunkName(String name)
- Description copied from interface:
MultiDestinationChannelOutAttributeController
- Sets the name of the
IPChannelDestinationChunk
chunk used by ChannelOut.
- Specified by:
setDestinationChunkName
in interface MultiDestinationChannelOutAttributeController
- Parameters:
name
- the name of the IPChannelDestinationChunk
chunk used by
ChannelOut.- See Also:
MultiDestinationChannelOutAttributeController.setDestinationChunkName(String)
getMaxConnection
public int getMaxConnection()
- Description copied from interface:
MultiConnTCPChannelOutAttributeController
- Returns the maximum number of connections.
- Specified by:
getMaxConnection
in interface MultiConnTCPChannelOutAttributeController
- Returns:
- the maximum number of connections.
- See Also:
MultiConnTCPChannelInAttributeController.getMaxConnection()
setMaxConnection
public void setMaxConnection(int maxConnection)
- Description copied from interface:
MultiConnTCPChannelOutAttributeController
- Sets the maximum number of connections.
- Specified by:
setMaxConnection
in interface MultiConnTCPChannelOutAttributeController
- Parameters:
maxConnection
- the maximum number of connections.- See Also:
MultiConnTCPChannelInAttributeController.setMaxConnection(int)
getSoTimeout
public int getSoTimeout()
- Description copied from interface:
MultiConnTCPChannelOutAttributeController
- Returns the
SO_TIMEOUT
.
- Specified by:
getSoTimeout
in interface MultiConnTCPChannelOutAttributeController
- Returns:
- timeout, in milliseconds.
- See Also:
MultiConnTCPChannelInAttributeController.getSoTimeout()
setSoTimeout
public void setSoTimeout(int timeout)
- Description copied from interface:
MultiConnTCPChannelOutAttributeController
- Sets the
SO_TIMEOUT
.
- Specified by:
setSoTimeout
in interface MultiConnTCPChannelOutAttributeController
- Parameters:
timeout
- timeout, in milliseconds. if negative, use default value.- See Also:
MultiConnTCPChannelInAttributeController.setSoTimeout(int)
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.