public interface IMessage extends IRequest, IAnswer
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_ANSWERED
Stack received answer to this message
|
static int |
STATE_BUFFERED
The message is buffered ( not use yet )
|
static int |
STATE_NOT_SENT
The message is not sent to the network
|
static int |
STATE_SENT
The message has been sent to the network
|
ABORT_SESSION_ANSWER, ABORT_SESSION_REQUEST, ACCOUNTING_ANSWER, ACCOUNTING_REQUEST, CAPABILITIES_EXCHANGE_ANSWER, CAPABILITIES_EXCHANGE_REQUEST, DEVICE_WATCHDOG_ANSWER, DEVICE_WATCHDOG_REQUEST, DISCONNECT_PEER_ANSWER, DISCONNECT_PEER_REQUEST, RE_AUTH_ANSWER, RE_AUTH_REQUEST, SESSION_TERMINATION_ANSWER, SESSION_TERMINATION_REQUEST| Modifier and Type | Method and Description |
|---|---|
void |
clearTimer()
Cancel timer
|
Object |
clone()
Create clone object
|
void |
createTimer(ScheduledExecutorService scheduledFacility,
long timeOut,
TimeUnit timeUnit)
Create timer for request timout procedure
|
String |
getDuplicationKey()
Return duplication key of message
|
String |
getDuplicationKey(String host,
long endToEndId)
Generate duplication key
|
IEventListener |
getEventListener()
Return event listener
|
int |
getFlags()
Return flags as inteher
|
long |
getHeaderApplicationId()
Return header applicationId
|
IPeer |
getPeer()
Return attached peer
|
ApplicationId |
getSingleApplicationId()
Return application id
|
ApplicationId |
getSingleApplicationId(long id)
Return application id
|
int |
getState()
Return state of message
|
boolean |
isTimeOut()
Check timeout
|
void |
runTimer()
Execute timer task
|
void |
setEndToEndIdentifier(long endByEndId)
Set end by end id
|
void |
setHeaderApplicationId(long applicationId)
Set header message application id
|
void |
setHopByHopIdentifier(long hopByHopId)
Set hop by hop id
|
void |
setListener(IEventListener listener)
Set event listener
|
void |
setPeer(IPeer peer)
Attach message to peer
|
void |
setState(int newState)
Set new state
|
setNetworkRequestcreateAnswer, createAnswer, createAnswer, isNetworkRequestgetResultCodegetApplicationId, getApplicationIdAvps, getAvps, getCommandCode, getEndToEndIdentifier, getHopByHopIdentifier, getSessionId, getVersion, isError, isProxiable, isRequest, isReTransmitted, setError, setProxiable, setRequest, setReTransmittedisWrapperFor, unwrapstatic final int STATE_NOT_SENT
static final int STATE_SENT
static final int STATE_BUFFERED
static final int STATE_ANSWERED
int getState()
void setState(int newState)
newState - new state valuelong getHeaderApplicationId()
void setHeaderApplicationId(long applicationId)
applicationId - header message application idint getFlags()
void createTimer(ScheduledExecutorService scheduledFacility, long timeOut, TimeUnit timeUnit)
scheduledFacility - timer facilitytimeOut - value of timeouttimeUnit - time unitvoid runTimer()
void clearTimer()
void setHopByHopIdentifier(long hopByHopId)
hopByHopId - hopByHopId valuevoid setEndToEndIdentifier(long endByEndId)
endByEndId - endByEndId valueIPeer getPeer()
void setPeer(IPeer peer)
peer - attached peerApplicationId getSingleApplicationId()
ApplicationId getSingleApplicationId(long id)
boolean isTimeOut()
void setListener(IEventListener listener)
listener - event listenerIEventListener getEventListener()
String getDuplicationKey()
String getDuplicationKey(String host, long endToEndId)
host - origination hostendToEndId - end to end idObject clone()
Copyright © 2016. All Rights Reserved.