org.jdiameter.client.impl
Class SessionImpl
java.lang.Object
org.jdiameter.client.impl.BaseSessionImpl
org.jdiameter.client.impl.SessionImpl
- All Implemented Interfaces:
- BaseSession, Session, Wrapper, ISession
public class SessionImpl
- extends BaseSessionImpl
- implements ISession
Implementation for ISession
- Author:
- erick.svenson@yahoo.com, Bartosz Baranowski , Alexandre Mendonca
|
Method Summary |
Request |
createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm)
|
Request |
createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
|
Request |
createRequest(Request prevRequest)
|
NetworkReqListener |
getReqListener()
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
void |
release()
|
void |
send(Message message,
EventListener<Request,Answer> listener)
|
void |
send(Message message,
EventListener<Request,Answer> listener,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
|
void |
setRequestListener(NetworkReqListener listener)
|
|
unwrap(java.lang.Class<T> iface)
|
| Methods inherited from class org.jdiameter.client.impl.BaseSessionImpl |
appendAppId, createListenerWrapper, genericSend, genericSend, getAppId, getCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValid, send, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
send
public void send(Message message,
EventListener<Request,Answer> listener)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
send in interface Session
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
send
public void send(Message message,
EventListener<Request,Answer> listener,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws InternalException,
IllegalDiameterStateException,
RouteException,
OverloadException
- Specified by:
send in interface Session
- Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException
setRequestListener
public void setRequestListener(NetworkReqListener listener)
- Specified by:
setRequestListener in interface Session
getReqListener
public NetworkReqListener getReqListener()
- Specified by:
getReqListener in interface ISession
createRequest
public Request createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm)
- Specified by:
createRequest in interface Session
createRequest
public Request createRequest(int commandCode,
ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
- Specified by:
createRequest in interface Session
createRequest
public Request createRequest(Request prevRequest)
- Specified by:
createRequest in interface Session
release
public void release()
- Specified by:
release in interface BaseSession
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws InternalException
- Specified by:
isWrapperFor in interface Wrapper
- Throws:
InternalException
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws InternalException
- Specified by:
unwrap in interface Wrapper
- Throws:
InternalException
Copyright © 2014. All Rights Reserved.