public static interface EventSource.Factory
Modifier and Type | Method and Description |
---|---|
EventSource |
newEventSource(Request request,
EventSourceListener listener)
Creates a new event source and immediately returns it.
|
EventSource newEventSource(Request request, EventSourceListener listener)
listener
will be notified. The caller must cancel the returned event source when it is no longer
in use.Copyright © 2019. All rights reserved.