Package com.arcadedb.server.http.ws
Class WebSocketEventBus
- java.lang.Object
-
- com.arcadedb.server.http.ws.WebSocketEventBus
-
public class WebSocketEventBus extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHANNEL_ID
-
Constructor Summary
Constructors Constructor Description WebSocketEventBus(ArcadeDBServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<EventWatcherSubscription>
getDatabaseSubscriptions(String database)
void
publish(ChangeEvent event)
void
stop()
void
subscribe(String databaseName, String type, Set<ChangeEvent.TYPE> changeTypes, io.undertow.websockets.core.WebSocketChannel channel)
void
unsubscribe(String databaseName, UUID channelId)
void
unsubscribeAll(UUID channelId)
-
-
-
Field Detail
-
CHANNEL_ID
public static final String CHANNEL_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebSocketEventBus
public WebSocketEventBus(ArcadeDBServer server)
-
-
Method Detail
-
stop
public void stop()
-
subscribe
public void subscribe(String databaseName, String type, Set<ChangeEvent.TYPE> changeTypes, io.undertow.websockets.core.WebSocketChannel channel)
-
publish
public void publish(ChangeEvent event)
-
getDatabaseSubscriptions
public Collection<EventWatcherSubscription> getDatabaseSubscriptions(String database)
-
unsubscribeAll
public void unsubscribeAll(UUID channelId)
-
-