Package org.cometd.server.transport
Class AsyncJSONTransport.Writer
- java.lang.Object
-
- org.cometd.server.transport.AsyncJSONTransport.Writer
-
- All Implemented Interfaces:
EventListener
,javax.servlet.WriteListener
- Enclosing class:
- AsyncJSONTransport
protected class AsyncJSONTransport.Writer extends Object implements javax.servlet.WriteListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Writer(AbstractHttpTransport.Context context, List<ServerMessage> messages, Promise<Void> promise)
-
-
-
Constructor Detail
-
Writer
protected Writer(AbstractHttpTransport.Context context, List<ServerMessage> messages, Promise<Void> promise)
-
-
Method Detail
-
onWritePossible
public void onWritePossible() throws IOException
- Specified by:
onWritePossible
in interfacejavax.servlet.WriteListener
- Throws:
IOException
-
onError
public void onError(Throwable failure)
- Specified by:
onError
in interfacejavax.servlet.WriteListener
-
-