public class MQTTSocket extends AbstractMQTTSocket implements MQTTCodec.MQTTFrameSink, org.eclipse.jetty.websocket.api.WebSocketListener
brokerService, mqttInactivityMonitor, peerCertificates, protocolConverter, protocolLock, receiveCounter, remoteAddress, socketTransportStarted, wireFormat| Constructor and Description |
|---|
MQTTSocket(String remoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleStopped()
Called when the transport is stopping to allow the dervied classes
a chance to close WebSocket resources.
|
void |
onFrame(org.fusesource.mqtt.codec.MQTTFrame mqttFrame) |
void |
onWebSocketBinary(byte[] bytes,
int offset,
int length) |
void |
onWebSocketClose(int arg0,
String arg1) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable arg0) |
void |
onWebSocketText(String arg0) |
void |
sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command) |
doStart, doStop, getInactivityMonitor, getPeerCertificates, getProtocolConverter, getReceiveCounter, getRemoteAddress, getWireFormat, oneway, sendToActiveMQ, setBrokerService, setPeerCertificates, setTransportOptions, transportStartedAtLeastOnceasyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonException, stoppublic MQTTSocket(String remoteAddress)
public void sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command) throws IOException
sendToMQTT in interface MQTTTransportsendToMQTT in class AbstractMQTTSocketIOExceptionpublic void handleStopped() throws IOException
AbstractMQTTSockethandleStopped in class AbstractMQTTSocketIOException - if an error occurs during the stop.public void onWebSocketBinary(byte[] bytes, int offset, int length)
onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketClose(int arg0, String arg1)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketError(Throwable arg0)
onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketText(String arg0)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onFrame(org.fusesource.mqtt.codec.MQTTFrame mqttFrame)
onFrame in interface MQTTCodec.MQTTFrameSinkCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.