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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidofferNotification(Notification notification)Inserts the notification into the subscription manager's queue.voidrenew(Duration expires)Resets 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, stopAsync
-
Methods inherited from interface org.somda.sdc.dpws.soap.wseventing.SubscriptionManager
getActions, getEndTo, getExpires, getExpiresTimeout, getNotifyTo, getSubscriptionId, getSubscriptionManagerEpr
-
-
-
-
Method Detail
-
offerNotification
void offerNotification(Notification notification)
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
void sendToEndTo(SoapMessage endToMessage)
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
void renew(Duration expires)
Resets the expires duration.This will also affect
SubscriptionManager.getExpiresTimeout().- Parameters:
expires- the duration to reset.
-
-