public class StompConnection extends AbstractProtocolConnection
Modifier and Type | Method and Description |
---|---|
boolean |
abort(java.lang.String tid) |
boolean |
ack(java.lang.String sid,
long mid) |
boolean |
begin(java.lang.String tid) |
boolean |
commit(java.lang.String tid) |
SenderSettleHandler |
createReceiptCallback() |
long |
getContentLength() |
java.lang.String |
getContentType() |
BrokerSender |
getDestination() |
java.lang.String |
getId() |
long |
getMessageId() |
java.lang.String |
getProtocolRequestURL()
Returns a default debugging identifier for the connection
|
java.lang.String |
getReceipt() |
long |
getSessionId() |
java.lang.String |
getSubscription() |
java.lang.String |
getTransaction() |
long |
getXid() |
boolean |
handleRequest()
Handles a new connection.
|
boolean |
handleResume()
Handles a resumption of the connection for an async/comet request.
|
void |
init()
Initialize the connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
boolean |
nack(java.lang.String sid,
long mid) |
void |
onCloseConnection()
Handles a close event when the connection is closed.
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
boolean |
subscribe() |
boolean |
unsubscribe(java.lang.String id) |
onAttachThread, onDetachThread
public java.lang.String getProtocolRequestURL()
AbstractProtocolConnection
getProtocolRequestURL
in interface ProtocolConnection
getProtocolRequestURL
in class AbstractProtocolConnection
public void init()
AbstractProtocolConnection
init
in interface ProtocolConnection
init
in class AbstractProtocolConnection
public long getSessionId()
public long getContentLength()
public long getMessageId()
public java.lang.String getSubscription()
public java.lang.String getContentType()
public BrokerSender getDestination()
public java.lang.String getId()
public long getXid()
public java.lang.String getReceipt()
public SenderSettleHandler createReceiptCallback()
public java.lang.String getTransaction()
public boolean subscribe() throws java.io.IOException
java.io.IOException
public boolean unsubscribe(java.lang.String id)
public boolean ack(java.lang.String sid, long mid)
public boolean nack(java.lang.String sid, long mid)
public boolean begin(java.lang.String tid)
public boolean commit(java.lang.String tid)
public boolean abort(java.lang.String tid)
public boolean handleRequest() throws java.io.IOException
AbstractProtocolConnection
handleRequest
in interface ProtocolConnection
handleRequest
in class AbstractProtocolConnection
java.io.IOException
public boolean handleResume() throws java.io.IOException
AbstractProtocolConnection
handleResume
in interface ProtocolConnection
handleResume
in class AbstractProtocolConnection
java.io.IOException
public boolean isWaitForRead()
ProtocolConnection
public void onCloseConnection()
AbstractProtocolConnection
onCloseConnection
in interface ProtocolConnection
onCloseConnection
in class AbstractProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
onStartConnection
in class AbstractProtocolConnection