Class EventSourceInterceptor

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service, Interceptor, EventSource

    public class EventSourceInterceptor
    extends com.google.common.util.concurrent.AbstractIdleService
    implements EventSource
    Interceptor that handles an event source's incoming subscription requests and facilitates sending notifications.
    • 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 Detail

      • sendNotification

        public void sendNotification​(String action,
                                     Object payload)
        Description copied from interface: EventSource
        Sends a notification to all event sinks.
        Specified by:
        sendNotification in interface EventSource
        Parameters:
        action - the action URI used for dispatching to event sinks.
        payload - a JAXB element or JAXB generated class object to transport.
      • subscriptionEndToAll

        public void subscriptionEndToAll​(WsEventingStatus status)
        Description copied from interface: EventSource
        Sends a subscription end to all event sinks.
        Specified by:
        subscriptionEndToAll in interface EventSource
        Parameters:
        status - the subscription end reason.
      • startUp

        protected void startUp()
        Specified by:
        startUp in class com.google.common.util.concurrent.AbstractIdleService
      • shutDown

        protected void shutDown()
        Specified by:
        shutDown in class com.google.common.util.concurrent.AbstractIdleService