Index

A B C D E G H I J L N O R S T U 
All Classes and Interfaces|All Packages|Constant Field Values

A

afterClientsUnregistered(Set<String>) - Method in interface ch.rasc.sse.eventbus.SseEventBusListener
Called each time the library has unregistered one or more stale clients.
afterEventQueued(ClientEvent, boolean) - Method in interface ch.rasc.sse.eventbus.SseEventBusListener
Called each time a message has been added to the internal sending queue
afterEventSent(ClientEvent, Exception) - Method in interface ch.rasc.sse.eventbus.SseEventBusListener
Called each time a message has been sent either successfully or unsuccessfully

B

builder() - Static method in interface ch.rasc.sse.eventbus.SseEvent
 
Builder() - Constructor for class ch.rasc.sse.eventbus.SseEvent.Builder
 

C

ch.rasc.sse.eventbus - module ch.rasc.sse.eventbus
 
ch.rasc.sse.eventbus - package ch.rasc.sse.eventbus
 
ch.rasc.sse.eventbus.config - package ch.rasc.sse.eventbus.config
 
cleanUp() - Method in class ch.rasc.sse.eventbus.SseEventBus
 
Client - Class in ch.rasc.sse.eventbus
 
ClientEvent - Class in ch.rasc.sse.eventbus
 
ClientEvent(Client, SseEvent, String) - Constructor for class ch.rasc.sse.eventbus.ClientEvent
 
clientExpiration() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
Duration after the last successful data connection, a client is removed from the internal registry.
clientExpirationJobDelay() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
Specifies the delay between runs of the internal job that checks for expired clients.
clientIds() - Method in interface ch.rasc.sse.eventbus.SseEvent
 
comment() - Method in interface ch.rasc.sse.eventbus.SseEvent
 
configurer - Variable in class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
convert(SseEvent) - Method in interface ch.rasc.sse.eventbus.DataObjectConverter
 
convert(SseEvent) - Method in class ch.rasc.sse.eventbus.DefaultDataObjectConverter
 
convert(SseEvent) - Method in class ch.rasc.sse.eventbus.JacksonDataObjectConverter
 
countSubscribers(String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
countSubscribers(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
Get the number of subscribers to a particular event
countSubscribers(String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
Get the number of subscribers to a particular event
createSseEmitter(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
createSseEmitter(String, boolean, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
createSseEmitter(String, Long, boolean, boolean, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
Creates a SseEmitter and registers the client in the internal database.
createSseEmitter(String, Long, boolean, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
createSseEmitter(String, Long, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
createSseEmitter(String, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
createSseEventBuilder() - Method in class ch.rasc.sse.eventbus.ClientEvent
 

D

data() - Method in interface ch.rasc.sse.eventbus.SseEvent
 
DataObjectConverter - Interface in ch.rasc.sse.eventbus
 
dataObjectConverters - Variable in class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
DEFAULT_EVENT - Static variable in interface ch.rasc.sse.eventbus.SseEvent
 
DefaultDataObjectConverter - Class in ch.rasc.sse.eventbus
 
DefaultDataObjectConverter() - Constructor for class ch.rasc.sse.eventbus.DefaultDataObjectConverter
 
DefaultSseEventBusConfiguration - Class in ch.rasc.sse.eventbus.config
To enable the SSE EventBus library create a @Configuration class that either extends this class or implement the interface SseEventBusConfigurer and add the EnableSseEventBus annotation to any @Configuration class or just add the EnableSseEventBus annotation to any @Configuration class
DefaultSseEventBusConfiguration() - Constructor for class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
DefaultSubscriptionRegistry - Class in ch.rasc.sse.eventbus
 
DefaultSubscriptionRegistry() - Constructor for class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 

E

EnableSseEventBus - Annotation Interface in ch.rasc.sse.eventbus.config
Add this annotation to any @Configuration class to enable the SseEventBus.
errorQueue() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
 
event() - Method in interface ch.rasc.sse.eventbus.SseEvent
 
eventBus() - Method in class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
excludeClientIds() - Method in interface ch.rasc.sse.eventbus.SseEvent
Is ignored when clientIds is not empty

G

getAllClientIds() - Method in class ch.rasc.sse.eventbus.SseEventBus
Get a collection of all registered clientIds
getAllEvents() - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
getAllEvents() - Method in class ch.rasc.sse.eventbus.SseEventBus
Get a collection of all registered events
getAllEvents() - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
Get a collection of all registered events
getAllSubscriptions() - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
getAllSubscriptions() - Method in class ch.rasc.sse.eventbus.SseEventBus
Get a map that maps events to a collection of clientIds
getAllSubscriptions() - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
Get a map that maps events to a collection of clientIds
getClient() - Method in class ch.rasc.sse.eventbus.ClientEvent
 
getDataObjectConverters() - Method in class ch.rasc.sse.eventbus.SseEventBus
 
getErrorCounter() - Method in class ch.rasc.sse.eventbus.ClientEvent
 
getEventSubscribers() - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
getId() - Method in class ch.rasc.sse.eventbus.Client
 
getSseEvent() - Method in class ch.rasc.sse.eventbus.ClientEvent
 
getSubscribers(String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
getSubscribers(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
Get all subscribers to a particular event
getSubscribers(String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
Get all subscribers to a particular event

H

handleEvent(SseEvent) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
hasSubscribers(String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
hasSubscribers(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
Check if a particular event has subscribers
hasSubscribers(String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
Check if a particular event has subscribers

I

id() - Method in interface ch.rasc.sse.eventbus.SseEvent
 
isClientSubscribedToEvent(String, String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
isClientSubscribedToEvent(String, String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
 

J

JacksonDataObjectConverter - Class in ch.rasc.sse.eventbus
 
JacksonDataObjectConverter(ObjectMapper) - Constructor for class ch.rasc.sse.eventbus.JacksonDataObjectConverter
 
jsonView() - Method in interface ch.rasc.sse.eventbus.SseEvent
 

L

listener() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
 

N

noOfSendResponseTries() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
Number of tries to send an event.

O

objectMapper - Variable in class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
of(String, Object) - Static method in interface ch.rasc.sse.eventbus.SseEvent
Creates a SseEvent that just contains an event and data.
ofData(Object) - Static method in interface ch.rasc.sse.eventbus.SseEvent
Creates a SseEvent that just contains the data.
ofEvent(String) - Static method in interface ch.rasc.sse.eventbus.SseEvent
Creates a SseEvent that contains an event and an empty string

R

registerClient(String, SseEmitter) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
registerClient(String, SseEmitter, boolean) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
retry() - Method in interface ch.rasc.sse.eventbus.SseEvent
 

S

schedulerDelay() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
Specifies the delay between runs of the internal error queue job.
sendQueue() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
 
setDataObjectConverters(List<DataObjectConverter>) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
SseEvent - Interface in ch.rasc.sse.eventbus
 
SseEvent.Builder - Class in ch.rasc.sse.eventbus
 
SseEventBus - Class in ch.rasc.sse.eventbus
 
SseEventBus(SseEventBusConfigurer, SubscriptionRegistry) - Constructor for class ch.rasc.sse.eventbus.SseEventBus
 
SseEventBusConfigurer - Interface in ch.rasc.sse.eventbus.config
Defines methods for configuring the SSE Event Bus library.
SseEventBusListener - Interface in ch.rasc.sse.eventbus
Listen for internal events.
subscribe(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
Subscribe to the default event (message)
subscribe(String, String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
subscribe(String, String) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
subscribe(String, String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
 
subscribeOnly(String, String) - Method in class ch.rasc.sse.eventbus.SseEventBus
Subscribe to the event and unsubscribe to all other currently subscribed events
subscriptionRegistry - Variable in class ch.rasc.sse.eventbus.config.DefaultSseEventBusConfiguration
 
SubscriptionRegistry - Interface in ch.rasc.sse.eventbus
 
supports(SseEvent) - Method in interface ch.rasc.sse.eventbus.DataObjectConverter
 
supports(SseEvent) - Method in class ch.rasc.sse.eventbus.DefaultDataObjectConverter
 
supports(SseEvent) - Method in class ch.rasc.sse.eventbus.JacksonDataObjectConverter
 

T

taskScheduler() - Method in interface ch.rasc.sse.eventbus.config.SseEventBusConfigurer
An executor that schedules and runs the internal jobs

U

unregisterClient(String) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
unsubscribe(String, String) - Method in class ch.rasc.sse.eventbus.DefaultSubscriptionRegistry
 
unsubscribe(String, String) - Method in class ch.rasc.sse.eventbus.SseEventBus
 
unsubscribe(String, String) - Method in interface ch.rasc.sse.eventbus.SubscriptionRegistry
 
unsubscribeFromAllEvents(String, String...) - Method in class ch.rasc.sse.eventbus.SseEventBus
Unsubscribe the client from all events except the events provided with the keepEvents parameter.
A B C D E G H I J L N O R S T U 
All Classes and Interfaces|All Packages|Constant Field Values