public class StompClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StompClient.State |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CONNECT_RETRY |
static long |
DEFAULT_CONNECT_WAIT_TIME |
static long |
DEFAULT_DISCONNECT_WAIT_TIME |
| Constructor and Description |
|---|
StompClient(String uri) |
StompClient(String uri,
SSLContext sslContext) |
StompClient(URI uri) |
StompClient(URI uri,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String transactionId) |
ClientTransaction |
begin() |
void |
commit(String transactionId) |
void |
connect() |
void |
connect(long waitTime) |
protected org.jboss.netty.channel.socket.ClientSocketChannelFactory |
createChannelFactory() |
protected org.jboss.netty.channel.ChannelPipelineFactory |
createPipelineFactory() |
void |
disconnect() |
void |
disconnect(long waitTime) |
StompClient.State |
getConnectionState() |
Executor |
getExecutor() |
InetSocketAddress |
getServerAddress() |
SSLContext |
getSSLContext() |
StompFrame.Version |
getVersion() |
Class<? extends Handshake> |
getWebSocketHandshakeClass() |
boolean |
isConnected() |
boolean |
isDisconnected() |
boolean |
isSecure() |
void |
send(StompMessage message) |
void |
setExecutor(Executor executor) |
void |
setWebSocketHandshakeClass(Class<? extends Handshake> handshakeClass) |
SubscriptionBuilder |
subscribe(String destination) |
public static final long DEFAULT_CONNECT_WAIT_TIME
public static final long DEFAULT_DISCONNECT_WAIT_TIME
public static final long DEFAULT_CONNECT_RETRY
public StompClient(String uri) throws URISyntaxException
URISyntaxExceptionpublic StompClient(String uri, SSLContext sslContext) throws URISyntaxException
URISyntaxExceptionpublic StompClient(URI uri) throws URISyntaxException
URISyntaxExceptionpublic StompClient(URI uri, SSLContext sslContext) throws URISyntaxException
URISyntaxExceptionpublic boolean isSecure()
public SSLContext getSSLContext()
public InetSocketAddress getServerAddress()
public void setExecutor(Executor executor)
public Executor getExecutor()
public void setWebSocketHandshakeClass(Class<? extends Handshake> handshakeClass)
public StompFrame.Version getVersion()
public boolean isConnected()
public boolean isDisconnected()
public StompClient.State getConnectionState()
public void connect()
throws InterruptedException,
TimeoutException,
StompException,
SSLException
public void connect(long waitTime)
throws InterruptedException,
TimeoutException,
StompException,
SSLException
public void disconnect()
throws InterruptedException,
TimeoutException,
StompException
public void disconnect(long waitTime)
throws InterruptedException,
TimeoutException,
StompException
public SubscriptionBuilder subscribe(String destination)
public void send(StompMessage message)
public ClientTransaction begin() throws StompException
StompExceptionpublic void abort(String transactionId) throws StompException
StompExceptionpublic void commit(String transactionId) throws StompException
StompExceptionprotected org.jboss.netty.channel.ChannelPipelineFactory createPipelineFactory()
throws InstantiationException,
IllegalAccessException
protected org.jboss.netty.channel.socket.ClientSocketChannelFactory createChannelFactory()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.