Methods Summary |
---|
synchronized void | clearUseCount()Clears the count of channels.
useCount = 0;
|
public abstract MessageChannel | createMessageChannel(HostPort targetHostPort)Creates a message channel for the specified host/port.
|
synchronized void | decrementUseCount()Decrements the count of channels.
if (0 != useCount) {
useCount --;
}
|
public ListeningPoint | getListeningPoint()Gets the current listening point.
return listeningPoint;
|
public abstract int | getPort()Gets the port identifier.
|
public abstract SIPMessageStack | getSIPStack()Gets the SIP Stack.
|
public abstract java.lang.String | getTransport()Gets the transport string.
|
public ViaHeader | getViaHeader()Get the Via header to assign for this message processor.
ViaHeader via = new ViaHeader();
Host host = new Host();
host.setHostname(this.getSIPStack().getHostAddress());
via.setHost(host);
via.setPort(this.getPort());
via.setTransport(this.getTransport());
return via;
|
public synchronized boolean | inUse()Return true if there are pending messages to be processed
(which prevents the message channel from being closed).
return (useCount != 0);
|
synchronized void | incrementUseCount()Increments the count of channels.
useCount ++;
|
public abstract boolean | isSecure()Flags whether this processor is secure or not.
|
public void | setListeningPoint(ListeningPoint lp)Sets the listening point for message processor.
listeningPoint = lp;
|
public abstract void | start()Starts our thread.
|
public abstract void | stop()Stops the processor thread.
|
public boolean | toExit()Returns the exitin progres flag.
return exitFlag;
|