Class WireFormatNegotiator
java.lang.Object
org.apache.activemq.transport.TransportFilter
org.apache.activemq.transport.WireFormatNegotiator
- All Implemented Interfaces:
Service, Transport, TransportListener
Negotiates the wire format with a new connection
-
Field Summary
Fields inherited from class TransportFilter
next, transportListener -
Constructor Summary
ConstructorsConstructorDescriptionWireFormatNegotiator(Transport next, OpenWireFormat wireFormat, int minimumVersion) Negotiator -
Method Summary
Modifier and TypeMethodDescriptionlongvoidnegociate(WireFormatInfo info) voidcalled to process a commandvoidA one way asynchronous sendvoidonException(IOException error) An unrecoverable exception has occurred on the transportprotected voidvoidprotected voidsendWireFormat(WireFormatInfo info) voidsetNegotiateTimeout(long negotiateTimeout) voidstart()voidstop()toString()Methods inherited from class TransportFilter
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setPeerCertificates, setTransportListener, transportInterupted, transportResumed, updateURIs
-
Constructor Details
-
WireFormatNegotiator
Negotiator- Parameters:
next-
-
-
Method Details
-
start
-
sendWireFormat
- Throws:
IOException
-
stop
-
oneway
Description copied from interface:TransportA one way asynchronous send- Specified by:
onewayin interfaceTransport- Overrides:
onewayin classTransportFilter- Parameters:
command-- Throws:
IOException
-
onCommand
Description copied from interface:TransportListenercalled to process a command- Specified by:
onCommandin interfaceTransportListener- Overrides:
onCommandin classTransportFilter- Parameters:
o-
-
negociate
-
onException
Description copied from interface:TransportListenerAn unrecoverable exception has occurred on the transport- Specified by:
onExceptionin interfaceTransportListener- Overrides:
onExceptionin classTransportFilter- Parameters:
error-
-
toString
- Overrides:
toStringin classTransportFilter
-
sendWireFormat
- Throws:
IOException
-
onWireFormatNegotiated
-
getNegotiateTimeout
public long getNegotiateTimeout() -
setNegotiateTimeout
public void setNegotiateTimeout(long negotiateTimeout)
-