public class WireFormatNegotiator extends TransportFilter
next, transportListener| Constructor and Description |
|---|
WireFormatNegotiator(Transport next,
OpenWireFormat wireFormat,
int minimumVersion)
Negotiator
|
| Modifier and Type | Method and Description |
|---|---|
long |
getNegotiateTimeout() |
void |
negociate(WireFormatInfo info) |
void |
onCommand(Object o)
called to process a command
|
void |
oneway(Object command)
A one way asynchronous send
|
void |
onException(IOException error)
An unrecoverable exception has occured on the transport
|
protected void |
onWireFormatNegotiated(WireFormatInfo info) |
void |
sendWireFormat() |
protected void |
sendWireFormat(WireFormatInfo info) |
void |
setNegotiateTimeout(long negotiateTimeout) |
void |
start() |
void |
stop() |
String |
toString() |
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setPeerCertificates, setTransportListener, transportInterupted, transportResumed, updateURIspublic WireFormatNegotiator(Transport next, OpenWireFormat wireFormat, int minimumVersion)
next - public void start() throws Exception
start in interface Servicestart in class TransportFilterExceptionService.start()public void sendWireFormat() throws IOException
IOExceptionpublic void stop() throws Exception
stop in interface Servicestop in class TransportFilterExceptionService.stop()public void oneway(Object command) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic void onCommand(Object o)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void negociate(WireFormatInfo info)
public void onException(IOException error)
TransportListeneronException in interface TransportListeneronException in class TransportFilterpublic String toString()
toString in class TransportFilterprotected void sendWireFormat(WireFormatInfo info) throws IOException
IOExceptionprotected void onWireFormatNegotiated(WireFormatInfo info)
public long getNegotiateTimeout()
public void setNegotiateTimeout(long negotiateTimeout)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.