org.jdiameter.client.impl
Class RawSessionImpl

java.lang.Object
  extended by org.jdiameter.client.impl.BaseSessionImpl
      extended by org.jdiameter.client.impl.RawSessionImpl
All Implemented Interfaces:
BaseSession, RawSession, Wrapper

public class RawSessionImpl
extends BaseSessionImpl
implements RawSession

Author:
erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski

Field Summary
 
Fields inherited from class org.jdiameter.client.impl.BaseSessionImpl
container, creationTime, isValid, lastAccessedTime, parser, reqListener, sessionId
 
Method Summary
 Message createMessage(int commandCode, ApplicationId appId, Avp... avps)
           
 Message createMessage(int commandCode, ApplicationId appId, long hopByHopIdentifier, long endToEndIdentifier, Avp... avps)
           
 Message createMessage(Message message, boolean copyAvps)
           
 boolean isWrapperFor(java.lang.Class<?> iface)
           
 void release()
           
 void send(Message message, EventListener<Message,Message> listener)
           
 void send(Message message, EventListener<Message,Message> listener, long timeOut, java.util.concurrent.TimeUnit timeUnit)
           
<T> T
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
 
Methods inherited from interface org.jdiameter.api.RawSession
send, send
 
Methods inherited from interface org.jdiameter.api.BaseSession
getCreationTime, getLastAccessedTime, getSessionId, isAppSession, isReplicable, isValid
 

Method Detail

createMessage

public Message createMessage(int commandCode,
                             ApplicationId appId,
                             Avp... avps)
Specified by:
createMessage in interface RawSession

createMessage

public Message createMessage(int commandCode,
                             ApplicationId appId,
                             long hopByHopIdentifier,
                             long endToEndIdentifier,
                             Avp... avps)
Specified by:
createMessage in interface RawSession

createMessage

public Message createMessage(Message message,
                             boolean copyAvps)
Specified by:
createMessage in interface RawSession

send

public void send(Message message,
                 EventListener<Message,Message> listener)
          throws InternalException,
                 IllegalDiameterStateException,
                 RouteException,
                 OverloadException
Specified by:
send in interface RawSession
Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException

send

public void send(Message message,
                 EventListener<Message,Message> listener,
                 long timeOut,
                 java.util.concurrent.TimeUnit timeUnit)
          throws InternalException,
                 IllegalDiameterStateException,
                 RouteException,
                 OverloadException
Specified by:
send in interface RawSession
Throws:
InternalException
IllegalDiameterStateException
RouteException
OverloadException

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.