public class IndexedSmppSessionDecorator extends Object implements com.cloudhopper.smpp.SmppSession
Constructor and Description |
---|
IndexedSmppSessionDecorator(com.cloudhopper.smpp.SmppSession delegate,
int sessionIdx) |
Modifier and Type | Method and Description |
---|---|
boolean |
areOptionalParametersSupported() |
void |
close() |
void |
destroy() |
com.cloudhopper.smpp.pdu.EnquireLinkResp |
enquireLink(com.cloudhopper.smpp.pdu.EnquireLink request,
long timeoutMillis) |
com.cloudhopper.smpp.SmppBindType |
getBindType() |
long |
getBoundTime() |
com.cloudhopper.smpp.SmppSessionConfiguration |
getConfiguration() |
com.cloudhopper.smpp.SmppSessionCounters |
getCounters() |
byte |
getInterfaceVersion() |
com.cloudhopper.smpp.SmppSession.Type |
getLocalType() |
com.cloudhopper.smpp.SmppSession.Type |
getRemoteType() |
com.cloudhopper.commons.util.windowing.Window<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> |
getRequestWindow() |
com.cloudhopper.commons.util.windowing.Window<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> |
getSendWindow() |
int |
getSessionIdx() |
String |
getStateName() |
boolean |
hasCounters() |
boolean |
isBinding() |
boolean |
isBound() |
boolean |
isClosed() |
boolean |
isOpen() |
boolean |
isUnbinding() |
com.cloudhopper.commons.util.windowing.WindowFuture<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> |
sendRequestPdu(com.cloudhopper.smpp.pdu.PduRequest request,
long timeoutMillis,
boolean synchronous) |
void |
sendResponsePdu(com.cloudhopper.smpp.pdu.PduResponse response) |
com.cloudhopper.smpp.pdu.SubmitSmResp |
submit(com.cloudhopper.smpp.pdu.SubmitSm request,
long timeoutMillis) |
String |
toString() |
void |
unbind(long timeoutMillis) |
public IndexedSmppSessionDecorator(com.cloudhopper.smpp.SmppSession delegate, int sessionIdx)
public com.cloudhopper.smpp.SmppBindType getBindType()
getBindType
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.smpp.SmppSession.Type getLocalType()
getLocalType
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.smpp.SmppSession.Type getRemoteType()
getRemoteType
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.smpp.SmppSessionConfiguration getConfiguration()
getConfiguration
in interface com.cloudhopper.smpp.SmppSession
public String getStateName()
getStateName
in interface com.cloudhopper.smpp.SmppSession
public byte getInterfaceVersion()
getInterfaceVersion
in interface com.cloudhopper.smpp.SmppSession
public boolean areOptionalParametersSupported()
areOptionalParametersSupported
in interface com.cloudhopper.smpp.SmppSession
public boolean isOpen()
isOpen
in interface com.cloudhopper.smpp.SmppSession
public boolean isBinding()
isBinding
in interface com.cloudhopper.smpp.SmppSession
public boolean isBound()
isBound
in interface com.cloudhopper.smpp.SmppSession
public boolean isUnbinding()
isUnbinding
in interface com.cloudhopper.smpp.SmppSession
public boolean isClosed()
isClosed
in interface com.cloudhopper.smpp.SmppSession
public long getBoundTime()
getBoundTime
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.commons.util.windowing.Window<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> getRequestWindow()
getRequestWindow
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.commons.util.windowing.Window<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> getSendWindow()
getSendWindow
in interface com.cloudhopper.smpp.SmppSession
public boolean hasCounters()
hasCounters
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.smpp.SmppSessionCounters getCounters()
getCounters
in interface com.cloudhopper.smpp.SmppSession
public void close()
close
in interface com.cloudhopper.smpp.SmppSession
public void unbind(long timeoutMillis)
unbind
in interface com.cloudhopper.smpp.SmppSession
public void destroy()
destroy
in interface com.cloudhopper.smpp.SmppSession
public com.cloudhopper.smpp.pdu.EnquireLinkResp enquireLink(com.cloudhopper.smpp.pdu.EnquireLink request, long timeoutMillis) throws com.cloudhopper.smpp.type.RecoverablePduException, com.cloudhopper.smpp.type.UnrecoverablePduException, com.cloudhopper.smpp.type.SmppTimeoutException, com.cloudhopper.smpp.type.SmppChannelException, InterruptedException
enquireLink
in interface com.cloudhopper.smpp.SmppSession
com.cloudhopper.smpp.type.RecoverablePduException
com.cloudhopper.smpp.type.UnrecoverablePduException
com.cloudhopper.smpp.type.SmppTimeoutException
com.cloudhopper.smpp.type.SmppChannelException
InterruptedException
public com.cloudhopper.smpp.pdu.SubmitSmResp submit(com.cloudhopper.smpp.pdu.SubmitSm request, long timeoutMillis) throws com.cloudhopper.smpp.type.RecoverablePduException, com.cloudhopper.smpp.type.UnrecoverablePduException, com.cloudhopper.smpp.type.SmppTimeoutException, com.cloudhopper.smpp.type.SmppChannelException, InterruptedException
submit
in interface com.cloudhopper.smpp.SmppSession
com.cloudhopper.smpp.type.RecoverablePduException
com.cloudhopper.smpp.type.UnrecoverablePduException
com.cloudhopper.smpp.type.SmppTimeoutException
com.cloudhopper.smpp.type.SmppChannelException
InterruptedException
public com.cloudhopper.commons.util.windowing.WindowFuture<Integer,com.cloudhopper.smpp.pdu.PduRequest,com.cloudhopper.smpp.pdu.PduResponse> sendRequestPdu(com.cloudhopper.smpp.pdu.PduRequest request, long timeoutMillis, boolean synchronous) throws com.cloudhopper.smpp.type.RecoverablePduException, com.cloudhopper.smpp.type.UnrecoverablePduException, com.cloudhopper.smpp.type.SmppTimeoutException, com.cloudhopper.smpp.type.SmppChannelException, InterruptedException
sendRequestPdu
in interface com.cloudhopper.smpp.SmppSession
com.cloudhopper.smpp.type.RecoverablePduException
com.cloudhopper.smpp.type.UnrecoverablePduException
com.cloudhopper.smpp.type.SmppTimeoutException
com.cloudhopper.smpp.type.SmppChannelException
InterruptedException
public void sendResponsePdu(com.cloudhopper.smpp.pdu.PduResponse response) throws com.cloudhopper.smpp.type.RecoverablePduException, com.cloudhopper.smpp.type.UnrecoverablePduException, com.cloudhopper.smpp.type.SmppChannelException, InterruptedException
sendResponsePdu
in interface com.cloudhopper.smpp.SmppSession
com.cloudhopper.smpp.type.RecoverablePduException
com.cloudhopper.smpp.type.UnrecoverablePduException
com.cloudhopper.smpp.type.SmppChannelException
InterruptedException
public int getSessionIdx()
Copyright © 2021. All rights reserved.