Class StompConnection
java.lang.Object
org.apache.activemq.transport.stomp.StompConnection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidack(StompFrame frame) voidack(StompFrame frame, String transaction) protected StringappendHeaders(HashMap<String, Object> headers) voidvoidclose()voidvoidvoidvoidvoidvoiddisconnect(String receiptId) voidvoidvoidreceive()receive(long timeOut) receiveFrame(long timeOut) voidvoidvoidvoidvoidsetStompSocket(Socket stompSocket) voidsetVersion(String version) voidvoidvoidvoidunsubscribe(String destination) voidunsubscribe(String destination, HashMap<String, String> headers)
-
Field Details
-
RECEIVE_TIMEOUT
public static final long RECEIVE_TIMEOUT- See Also:
-
-
Constructor Details
-
StompConnection
public StompConnection()
-
-
Method Details
-
open
- Throws:
IOExceptionUnknownHostException
-
open
-
close
- Throws:
IOException
-
sendFrame
- Throws:
Exception
-
sendFrame
- Throws:
Exception
-
receive
- Throws:
Exception
-
receive
- Throws:
Exception
-
receiveFrame
- Throws:
Exception
-
receiveFrame
- Throws:
Exception
-
getStompSocket
-
setStompSocket
-
connect
- Throws:
Exception
-
connect
- Throws:
Exception
-
connect
- Throws:
Exception
-
disconnect
- Throws:
Exception
-
disconnect
- Throws:
Exception
-
send
- Throws:
Exception
-
send
public void send(String destination, String message, String transaction, HashMap<String, String> headers) throws Exception- Throws:
Exception
-
subscribe
- Throws:
Exception
-
subscribe
- Throws:
Exception
-
subscribe
public void subscribe(String destination, String ack, HashMap<String, String> headers) throws Exception- Throws:
Exception
-
unsubscribe
- Throws:
Exception
-
unsubscribe
- Throws:
Exception
-
begin
- Throws:
Exception
-
abort
- Throws:
Exception
-
commit
- Throws:
Exception
-
ack
- Throws:
Exception
-
ack
- Throws:
Exception
-
ack
- Throws:
Exception
-
ack
- Throws:
Exception
-
keepAlive
- Throws:
Exception
-
appendHeaders
-
getVersion
-
setVersion
-