-
Method Summary
com.github.philippheuer.events4j.api.IEventManager
long
Creates an eventsub subscription for this conduit.
Creates an eventsub subscription for this conduit.
boolean
Deletes an eventsub subscription from helix (and this conduit).
-
Method Details
-
getConduitId
- Returns:
- the ID associated with this Conduit
-
getEventManager
com.github.philippheuer.events4j.api.IEventManager getEventManager()
- Returns:
- the event manager for eventsub notifications
-
register
Creates an eventsub subscription for this conduit.
- Parameters:
subscription
- the eventsub subscription to be registered
- Returns:
- the created subscription
-
register
Creates an eventsub subscription for this conduit.
- Type Parameters:
C
- the condition type associated with the subscription
B
- the builder type associated with the condition
- Parameters:
type
- the type of EventSub subscription to be created; see SubscriptionTypes
conditions
- the conditions associated with the eventsub subscription
- Returns:
- the created subscription, or empty if the subscription could not be registered.
-
unregister
Deletes an eventsub subscription from helix (and this conduit).
- Parameters:
subscription
- the eventsub subscription to be destroyed
- Returns:
- whether the specified subscription was successfully deleted
-
getLatency
long getLatency()
- Returns:
- the average latency for the socket shards in milliseconds, or -1 if unknown