Class MQTTNIOTransport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.TransportThreadSupport
org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.mqtt.MQTTNIOTransport
public class MQTTNIOTransport
extends org.apache.activemq.transport.tcp.TcpTransport
An implementation of the
Transport interface for using MQTT over NIO-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.tcp.TcpTransport.InitBuffer -
Field Summary
Fields inherited from class org.apache.activemq.transport.tcp.TcpTransport
buffOut, closeAsync, connectionTimeout, dataIn, dataOut, diffServChosen, dynamicManagement, initBuffer, ioBufferSize, jmxPort, localLocation, logWriterName, minmumWireFormatVersion, receiveCounter, remoteLocation, socket, socketBufferSize, socketFactory, socketOptions, soTimeout, startLogging, stoppedLatch, trace, trafficClass, typeOfServiceChosen, useLocalHost, wireFormat -
Constructor Summary
ConstructorsConstructorDescriptionMQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) MQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) MQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop(ServiceStopper stopper) protected voidprotected voidprocessBuffer(ByteBuffer buffer, int readSize) Methods inherited from class org.apache.activemq.transport.tcp.TcpTransport
closeStreams, connect, doRun, getConnectionTimeout, getDiffServ, getIoBufferSize, getJmxPort, getKeepAlive, getLogWriterName, getMinmumWireFormatVersion, getPeerCertificates, getReceiveCounter, getRemoteAddress, getSocketBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTypeOfService, getWireFormat, initialiseSocket, isCloseAsync, isDynamicManagement, isStartLogging, isTrace, isUseLocalHost, narrow, oneway, readCommand, resolveHostName, run, setCloseAsync, setConnectionTimeout, setDiffServ, setDynamicManagement, setIoBufferSize, setJmxPort, setKeepAlive, setLogWriterName, setMinmumWireFormatVersion, setPeerCertificates, setSocketBufferSize, setSocketOptions, setSoLinger, setSoTimeout, setStartLogging, setTcpNoDelay, setTrace, setTypeOfService, setUseLocalHost, stop, toStringMethods inherited from class org.apache.activemq.transport.TransportThreadSupport
getStackSize, isDaemon, setDaemon, setStackSizeMethods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, onException, reconnect, request, request, setTransportListener, updateURIsMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
startMethods inherited from interface org.apache.activemq.transport.Transport
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, reconnect, request, request, setTransportListener, updateURIs
-
Constructor Details
-
MQTTNIOTransport
public MQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException - Throws:
UnknownHostExceptionIOException
-
MQTTNIOTransport
public MQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) throws IOException - Throws:
IOException
-
MQTTNIOTransport
public MQTTNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) throws IOException - Throws:
IOException
-
-
Method Details
-
initializeStreams
- Overrides:
initializeStreamsin classorg.apache.activemq.transport.tcp.TcpTransport- Throws:
IOException
-
processBuffer
- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.activemq.transport.tcp.TcpTransport- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.activemq.transport.tcp.TcpTransport- Throws:
Exception
-