Package org.apache.activemq.transport
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 org.apache.activemq.transport.TransportFilter
next, transportListener
-
Constructor Summary
ConstructorDescriptionWireFormatNegotiator
(Transport next, OpenWireFormat wireFormat, int minimumVersion) Negotiator -
Method Summary
Modifier and TypeMethodDescriptionlong
void
negociate
(WireFormatInfo info) void
called to process a commandvoid
A one way asynchronous sendvoid
onException
(IOException error) An unrecoverable exception has occured on the transportprotected void
void
protected void
sendWireFormat
(WireFormatInfo info) void
setNegotiateTimeout
(long negotiateTimeout) void
start()
void
stop()
toString()
Methods inherited from class org.apache.activemq.transport.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
- Specified by:
start
in interfaceService
- Overrides:
start
in classTransportFilter
- Throws:
Exception
- See Also:
-
sendWireFormat
- Throws:
IOException
-
stop
- Specified by:
stop
in interfaceService
- Overrides:
stop
in classTransportFilter
- Throws:
Exception
- See Also:
-
oneway
Description copied from interface:Transport
A one way asynchronous send- Specified by:
oneway
in interfaceTransport
- Overrides:
oneway
in classTransportFilter
- Throws:
IOException
-
onCommand
Description copied from interface:TransportListener
called to process a command- Specified by:
onCommand
in interfaceTransportListener
- Overrides:
onCommand
in classTransportFilter
-
negociate
-
onException
Description copied from interface:TransportListener
An unrecoverable exception has occured on the transport- Specified by:
onException
in interfaceTransportListener
- Overrides:
onException
in classTransportFilter
-
toString
- Overrides:
toString
in classTransportFilter
-
sendWireFormat
- Throws:
IOException
-
onWireFormatNegotiated
-
getNegotiateTimeout
public long getNegotiateTimeout() -
setNegotiateTimeout
public void setNegotiateTimeout(long negotiateTimeout)
-