Class SourceSubscriptionManagerImpl
java.lang.Object
com.google.common.util.concurrent.AbstractExecutionThreadService
org.somda.sdc.dpws.soap.wseventing.SourceSubscriptionManagerImpl
- All Implemented Interfaces:
com.google.common.util.concurrent.Service,SourceSubscriptionManager,SubscriptionManager
public class SourceSubscriptionManagerImpl
extends com.google.common.util.concurrent.AbstractExecutionThreadService
implements SourceSubscriptionManager
Default implementation of
SourceSubscriptionManager.-
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 TypeMethodDescriptiongetEndTo()voidofferNotification(Notification notification) Inserts the notification into the subscription manager's queue.voidResets the expires duration.protected voidrun()voidsendToEndTo(SoapMessage endToMessage) Tries to send an end-to message to the event sink.protected voidshutDown()protected voidstartUp()protected voidMethods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Method Details
-
getSubscriptionId
- Specified by:
getSubscriptionIdin interfaceSubscriptionManager
-
getExpiresTimeout
- Specified by:
getExpiresTimeoutin interfaceSubscriptionManager
-
getNotifyTo
- Specified by:
getNotifyToin interfaceSubscriptionManager
-
getEndTo
- Specified by:
getEndToin interfaceSubscriptionManager
-
getExpires
- Specified by:
getExpiresin interfaceSubscriptionManager
-
getSubscriptionManagerEpr
- Specified by:
getSubscriptionManagerEprin interfaceSubscriptionManager
-
getActions
- Specified by:
getActionsin interfaceSubscriptionManager
-
renew
Description copied from interface:SourceSubscriptionManagerResets the expires duration.This will also affect
SubscriptionManager.getExpiresTimeout().- Specified by:
renewin interfaceSourceSubscriptionManager- Parameters:
expires- the duration to reset.
-
offerNotification
Description copied from interface:SourceSubscriptionManagerInserts the notification into the subscription manager's queue.The manager is shut down
- on first delivery failure or
- in case there is queue overflow or a delivery failure.
- Specified by:
offerNotificationin interfaceSourceSubscriptionManager- Parameters:
notification- the notification to add.
-
sendToEndTo
Description copied from interface:SourceSubscriptionManagerTries to send an end-to message to the event sink.This is a non-blocking call that silently ignores failed delivery.
- Specified by:
sendToEndToin interfaceSourceSubscriptionManager- Parameters:
endToMessage- the message to send. This message is supposed to be a valid end-to message.
-
startUp
protected void startUp()- Overrides:
startUpin classcom.google.common.util.concurrent.AbstractExecutionThreadService
-
run
protected void run()- Specified by:
runin classcom.google.common.util.concurrent.AbstractExecutionThreadService
-
shutDown
protected void shutDown()- Overrides:
shutDownin classcom.google.common.util.concurrent.AbstractExecutionThreadService
-
triggerShutdown
protected void triggerShutdown()- Overrides:
triggerShutdownin classcom.google.common.util.concurrent.AbstractExecutionThreadService
-