Interface EventSourceDialectHandler
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.soap.interception.Interceptor
public interface EventSourceDialectHandler implements Interceptor
Callback interface for the management of subscriptions of a specific filter dialect.
-
-
Method Summary
Modifier and Type Method Description abstract voidinit(Subscriptions subscriptions)Called once for a filter dialect handler when the EventSourceInterceptorDispatcher service starts. abstract voidsubscribe(SourceSubscriptionManager subscriptionManager)Called on an incoming subscribe request. abstract voidunsubscribe(SourceSubscriptionManager subscriptionManager)Called on an incoming unsubscribe request. abstract voidsetStale(SourceSubscriptionManager subscriptionManager)Called when a subscription has expired. abstract StringgetDialect()This function shall return the handled filter dialect. -
-
Method Detail
-
init
abstract void init(Subscriptions subscriptions)
Called once for a filter dialect handler when the EventSourceInterceptorDispatcher service starts.
This function is guaranteed to be called before any other callback of this interface is called.
The subscriptions are managed by the EventSourceInterceptorDispatcher!
- Parameters:
subscriptions- the subscription registry that handles all subscriptions for the filter dialect
-
subscribe
abstract void subscribe(SourceSubscriptionManager subscriptionManager)
Called on an incoming subscribe request.
- Parameters:
subscriptionManager- the subscription manager for this subscription.
-
unsubscribe
abstract void unsubscribe(SourceSubscriptionManager subscriptionManager)
Called on an incoming unsubscribe request.
- Parameters:
subscriptionManager- the subscription manager for this subscription.
-
setStale
abstract void setStale(SourceSubscriptionManager subscriptionManager)
Called when a subscription has expired.
- Parameters:
subscriptionManager- the subscription manager for this subscription.
-
getDialect
abstract String getDialect()
This function shall return the handled filter dialect.
It is used by the dispatcher helping to assign subscription activity.
- Returns:
the filter dialect handled by this instance.
-
-
-
-