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