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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext asyncContext, ServerSessionImpl session, boolean scheduleExpiration, List<ServerMessage> messages, ServerMessage.Mutable[] replies)
-
Method Summary
Modifier and Type Method Description void
onError(Throwable throwable)
void
onWritePossible()
-
Constructor Details
-
Writer
protected Writer(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext asyncContext, ServerSessionImpl session, boolean scheduleExpiration, List<ServerMessage> messages, ServerMessage.Mutable[] replies)
-
-
Method Details
-
onWritePossible
- Specified by:
onWritePossible
in interfacejavax.servlet.WriteListener
- Throws:
IOException
-
onError
- Specified by:
onError
in interfacejavax.servlet.WriteListener
-