Class ConsoleEventSourceListener


  • public class ConsoleEventSourceListener
    extends okhttp3.sse.EventSourceListener
    描述: sse
    Author:
    https:www.unfbx.com 2023-02-28
    • Constructor Detail

      • ConsoleEventSourceListener

        public ConsoleEventSourceListener()
    • Method Detail

      • onOpen

        public void onOpen​(okhttp3.sse.EventSource eventSource,
                           okhttp3.Response response)
        Overrides:
        onOpen in class okhttp3.sse.EventSourceListener
      • onEvent

        public void onEvent​(okhttp3.sse.EventSource eventSource,
                            String id,
                            String type,
                            String data)
        Overrides:
        onEvent in class okhttp3.sse.EventSourceListener
      • onClosed

        public void onClosed​(okhttp3.sse.EventSource eventSource)
        Overrides:
        onClosed in class okhttp3.sse.EventSourceListener
      • onFailure

        public void onFailure​(okhttp3.sse.EventSource eventSource,
                              Throwable t,
                              okhttp3.Response response)
        Overrides:
        onFailure in class okhttp3.sse.EventSourceListener