public abstract class ConnectionOrientedMessageProcessor extends MessageProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ConnectionOrientedMessageChannel> |
incomingMessageChannels |
protected boolean |
isRunning |
protected Map<String,ConnectionOrientedMessageChannel> |
messageChannels |
protected int |
nConnections |
protected ServerSocket |
sock |
protected int |
useCount |
IN_ADDR_ANY, IN6_ADDR_ANY, sipStack, transport| Constructor and Description |
|---|
ConnectionOrientedMessageProcessor(InetAddress ipAddress,
int port,
String transport,
SIPTransactionStack sipStack) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cacheMessageChannel(ConnectionOrientedMessageChannel messageChannel) |
boolean |
closeReliableConnection(String peerAddress,
int peerPort) |
int |
getMaximumMessageSize()
TCP can handle an unlimited number of bytes.
|
SIPTransactionStack |
getSIPStack()
Returns the stack.
|
boolean |
inUse()
Return true if there are pending messages to be processed (which prevents
the message channel from being closed).
|
protected void |
remove(ConnectionOrientedMessageChannel messageChannel) |
boolean |
setKeepAliveTimeout(String peerAddress,
int peerPort,
long keepAliveTimeout) |
protected void |
validatePortInRange(int port) |
createMessageChannel, createMessageChannel, getDefaultPort, getDefaultTargetPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getTransport, getViaHeader, initialize, isSecure, isSentBySet, setIpAddress, setListeningPoint, setSentBy, start, stopprotected int nConnections
protected boolean isRunning
protected final Map<String,ConnectionOrientedMessageChannel> messageChannels
protected final Map<String,ConnectionOrientedMessageChannel> incomingMessageChannels
protected ServerSocket sock
protected int useCount
public ConnectionOrientedMessageProcessor(InetAddress ipAddress, int port, String transport, SIPTransactionStack sipStack)
public SIPTransactionStack getSIPStack()
getSIPStack in class MessageProcessorprotected void remove(ConnectionOrientedMessageChannel messageChannel)
protected void cacheMessageChannel(ConnectionOrientedMessageChannel messageChannel)
public int getMaximumMessageSize()
getMaximumMessageSize in class MessageProcessorpublic boolean inUse()
MessageProcessorinUse in class MessageProcessorpublic boolean closeReliableConnection(String peerAddress, int peerPort) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean setKeepAliveTimeout(String peerAddress, int peerPort, long keepAliveTimeout)
protected void validatePortInRange(int port)
throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2018. All Rights Reserved.