Interface EventSource

All Superinterfaces:
Interceptor, com.google.common.util.concurrent.Service
All Known Implementing Classes:
EventSourceInterceptor

public interface EventSource extends Interceptor, com.google.common.util.concurrent.Service
Interface to provide WS-Eventing event source functions.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all active subscription ids with their SubscriptionManager.
    void
    sendNotification(String action, Object payload)
    Sends a notification to all event sinks.
    void
    Sends a subscription end to all event sinks.

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • sendNotification

      void sendNotification(String action, Object payload)
      Sends a notification to all event sinks.
      Parameters:
      action - the action URI used for dispatching to event sinks.
      payload - a JAXB element or JAXB generated class object to transport.
    • subscriptionEndToAll

      void subscriptionEndToAll(WsEventingStatus status)
      Sends a subscription end to all event sinks.
      Parameters:
      status - the subscription end reason.
    • getActiveSubscriptions

      Map<String,SubscriptionManager> getActiveSubscriptions()
      Returns all active subscription ids with their SubscriptionManager.
      Returns:
      Map of subscription ids and SubscriptionManagers.