Class AsyncJSONTransport.Writer

java.lang.Object
org.cometd.server.http.AsyncJSONTransport.Writer
All Implemented Interfaces:
jakarta.servlet.WriteListener, java.util.EventListener
Enclosing class:
AsyncJSONTransport

protected class AsyncJSONTransport.Writer
extends java.lang.Object
implements jakarta.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

    Modifier and Type Method Description
    void onError​(java.lang.Throwable failure)  
    void onWritePossible()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onWritePossible

      public void onWritePossible() throws java.io.IOException
      Specified by:
      onWritePossible in interface jakarta.servlet.WriteListener
      Throws:
      java.io.IOException
    • onError

      public void onError​(java.lang.Throwable failure)
      Specified by:
      onError in interface jakarta.servlet.WriteListener