public class BlockingConnection extends Object
A blocking Connection interface to MQTT.
| Constructor and Description |
|---|
BlockingConnection(FutureConnection next) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
void |
connect() |
void |
disconnect() |
boolean |
isConnected() |
void |
kill() |
void |
publish(String topic,
byte[] payload,
QoS qos,
boolean retain) |
void |
publish(org.fusesource.hawtbuf.UTF8Buffer topic,
org.fusesource.hawtbuf.Buffer payload,
QoS qos,
boolean retain) |
Message |
receive() |
Message |
receive(long amount,
TimeUnit unit) |
void |
resume() |
byte[] |
subscribe(Topic[] topics) |
void |
suspend() |
void |
unsubscribe(String[] topics) |
void |
unsubscribe(org.fusesource.hawtbuf.UTF8Buffer[] topics) |
public BlockingConnection(FutureConnection next)
public boolean isConnected()
public void unsubscribe(org.fusesource.hawtbuf.UTF8Buffer[] topics)
throws Exception
Exceptionpublic void publish(org.fusesource.hawtbuf.UTF8Buffer topic,
org.fusesource.hawtbuf.Buffer payload,
QoS qos,
boolean retain)
throws Exception
Exceptionprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void publish(String topic, byte[] payload, QoS qos, boolean retain) throws Exception
Exceptionpublic Message receive(long amount, TimeUnit unit) throws Exception
Exceptionpublic void resume()
public void suspend()
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.