Package org.apache.activemq.transport.ws
Interface WSTransport.WSTransportSink
-
- Enclosing interface:
- WSTransport
public static interface WSTransport.WSTransportSink
WS Transport output sink, used to give the WS Transport implementation a way to produce output back to the WS connection without coupling it to the implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onSocketOutboundBinary(ByteBuffer data)
Called from the Transport when new outgoing String data is ready.void
onSocketOutboundText(String data)
Called from the Transport when new outgoing String data is ready.
-
-
-
Method Detail
-
onSocketOutboundText
void onSocketOutboundText(String data) throws IOException
Called from the Transport when new outgoing String data is ready.- Parameters:
data
- The newly prepared outgoing string data.- Throws:
IOException
- if an error occurs or the socket doesn't support text data.
-
onSocketOutboundBinary
void onSocketOutboundBinary(ByteBuffer data) throws IOException
Called from the Transport when new outgoing String data is ready.- Parameters:
data
- The newly prepared outgoing string data.- Throws:
IOException
- if an error occurs or the socket doesn't support text data.
-
-