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(java.lang.Object o)
called to process a command
|
void |
oneway(java.lang.Object command)
A one way asynchronous send
|
void |
onException(java.io.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() |
java.lang.String |
toString() |
asyncRequest, getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, transportInterupted, transportResumed, updateURIspublic WireFormatNegotiator(Transport next, OpenWireFormat wireFormat, int minimumVersion)
next - public void start() throws java.lang.Exception
start in interface Servicestart in class TransportFilterjava.lang.ExceptionService.start()public void sendWireFormat() throws java.io.IOException
java.io.IOExceptionpublic void stop() throws java.lang.Exception
stop in interface Servicestop in class TransportFilterjava.lang.ExceptionService.stop()public void oneway(java.lang.Object command) throws java.io.IOException
Transportoneway in interface Transportoneway in class TransportFilterjava.io.IOExceptionpublic void onCommand(java.lang.Object o)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void negociate(WireFormatInfo info)
public void onException(java.io.IOException error)
TransportListeneronException in interface TransportListeneronException in class TransportFilterpublic java.lang.String toString()
toString in class TransportFilterprotected void sendWireFormat(WireFormatInfo info) throws java.io.IOException
java.io.IOExceptionprotected void onWireFormatNegotiated(WireFormatInfo info)
public long getNegotiateTimeout()
public void setNegotiateTimeout(long negotiateTimeout)
Copyright © 2005-2012. All Rights Reserved.