Class AutoNIOTransport
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.nio.NIOTransport
org.apache.activemq.transport.auto.nio.AutoNIOTransport
- All Implemented Interfaces:
Runnable,org.apache.activemq.Service,org.apache.activemq.transport.Transport
public class AutoNIOTransport
extends org.apache.activemq.transport.nio.NIOTransport
-
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.nio.NIOTransport
channel, currentBuffer, inputBuffer, nextFrameSize, selectionFields 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
ConstructorsConstructorDescriptionAutoNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) AutoNIOTransport(org.apache.activemq.wireformat.WireFormat format, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) AutoNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) -
Method Summary
Modifier and TypeMethodDescriptionprotected intRead from the initial buffer if it is setMethods inherited from class org.apache.activemq.transport.nio.NIOTransport
doStart, doStop, initializeStreams, serviceReadMethods 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
-
AutoNIOTransport
public AutoNIOTransport(org.apache.activemq.wireformat.WireFormat format, Socket socket, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) throws IOException - Throws:
IOException
-
AutoNIOTransport
public AutoNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, Socket socket) throws IOException - Throws:
IOException
-
AutoNIOTransport
public AutoNIOTransport(org.apache.activemq.wireformat.WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException - Throws:
UnknownHostExceptionIOException
-
-
Method Details
-
readFromBuffer
Read from the initial buffer if it is set- Overrides:
readFromBufferin classorg.apache.activemq.transport.nio.NIOTransport- Throws:
IOException
-