public interface EventSubscribeService
Modifier and Type | Method and Description |
---|---|
InvocationFuture<java.lang.Void> |
batchUnSubscribeEvent(EventSubscribeRequest request)
Unsubscribe to all specific events.
|
InvocationFuture<Event> |
publishEvent(Event event)
Publish event
|
InvocationFuture<java.util.List<EventSubscribeResult>> |
querySubscribeEvent(EventSubscribeRequest request)
Query the subscription relationship to specific events.
|
InvocationFuture<java.util.List<java.lang.String>> |
subscribeEvent(EventSubscribeRequest request)
Subscribe event
|
InvocationFuture<java.util.List<java.lang.String>> |
unSubscribeEvent(EventSubscribeRequest request)
Unsubscribe to specific event based on accounts.
|
InvocationFuture<Event> publishEvent(Event event)
event
- The eventInvocationFuture<java.util.List<java.lang.String>> subscribeEvent(EventSubscribeRequest request)
request
- To subscribe to request info, the event type, publisher account, and the expiration duration must be specified.InvocationFuture<java.util.List<java.lang.String>> unSubscribeEvent(EventSubscribeRequest request)
request
- The unsubscription info. Only event type and evetn publisher accounts are required.InvocationFuture<java.lang.Void> batchUnSubscribeEvent(EventSubscribeRequest request)
request
- The unsubscription info. Only event type is required.InvocationFuture<java.util.List<EventSubscribeResult>> querySubscribeEvent(EventSubscribeRequest request)
request
- The subscriotion info. The event type and publisher accounts are required. The publisher for specific events can be queried.