Interface SourceSubscriptionManager
- All Superinterfaces:
com.google.common.util.concurrent.Service,SubscriptionManager
- All Known Implementing Classes:
SourceSubscriptionManagerImpl
public interface SourceSubscriptionManager
extends SubscriptionManager, com.google.common.util.concurrent.Service
Subscription manager interface that is used by event sources.
-
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 TypeMethodDescriptionvoidofferNotification(Notification notification) Inserts the notification into the subscription manager's queue.voidResets the expires duration.voidsendToEndTo(SoapMessage endToMessage) Tries to send an end-to message to the event sink.Methods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsyncMethods inherited from interface org.somda.sdc.dpws.soap.wseventing.SubscriptionManager
getActions, getEndTo, getExpires, getExpiresTimeout, getNotifyTo, getSubscriptionId, getSubscriptionManagerEpr
-
Method Details
-
offerNotification
Inserts 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.
- Parameters:
notification- the notification to add.
-
sendToEndTo
Tries to send an end-to message to the event sink.This is a non-blocking call that silently ignores failed delivery.
- Parameters:
endToMessage- the message to send. This message is supposed to be a valid end-to message.
-
renew
Resets the expires duration.This will also affect
SubscriptionManager.getExpiresTimeout().- Parameters:
expires- the duration to reset.
-