public static class EventProcessor.Builder extends Object
EventProcessor
builder.Modifier and Type | Method and Description |
---|---|
EventProcessor.Builder |
boundListeners(Map<String,List<EventListener>> boundListeners)
Unbounded listeners will get notified about incoming events with particular name.
|
EventProcessor |
build()
Build the
EventProcessor . |
EventProcessor.Builder |
disableKeepAlive()
Disables keepalive.
|
EventProcessor.Builder |
reconnectDelay(long reconnectDelay,
TimeUnit unit)
Set initial reconnect delay.
|
EventProcessor.Builder |
unboundListeners(List<EventListener> unboundListeners)
Unbounded listeners will get notified about any incoming event.
|
public EventProcessor.Builder reconnectDelay(long reconnectDelay, TimeUnit unit)
reconnectDelay
- reconnect delay value.unit
- reconnect delay timeunit.public EventProcessor.Builder unboundListeners(List<EventListener> unboundListeners)
unboundListeners
- list of listeners.public EventProcessor.Builder boundListeners(Map<String,List<EventListener>> boundListeners)
boundListeners
- map of bound listeners, key is a name to which listeners are bound to, value is a list
of listeners.SseEvent.getName()
public EventProcessor.Builder disableKeepAlive()
public EventProcessor build()
EventProcessor
.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.