public interface ClientSubscription
renewing, unsubscribing, obtaining the current status, etc.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientSubscriptionId() |
java.lang.String |
getCommunicationManagerId()
returns the ID of the communication manager used to communicate with the subscription manager
corresponding to this client subscription instance.
|
EventSink |
getEventSink()
Returns the event sink, which receives subscribed messages.
|
XAddressInfo |
getNextXAddressInfoAfterFailureForSubscriptionManager(URI transportAddress,
int syncHostedBlockVersion) |
Service |
getService()
Returns the subscribed service.
|
java.lang.String |
getServiceSubscriptionId()
Returns the server-side subscription identifier for this subscription (in terms of WS-Eventing, this is the
wse:Identifier URI).
|
long |
getStatus()
Get the duration until expiration of this subscription.
|
EprInfo |
getSubscriptionManagerAddressInfo()
Returns the EprInfo of the server-side subscription manager for this subscription.
|
long |
getTimeoutTime()
Get system time in millis from the epoch when subscription will terminate.
|
void |
register(long duration,
EndpointReference subscriptionManagerEpr,
java.lang.String comMgr)
Only for initial registration, if the subscriptionManager is not known add creation of the
ClientSubscription.
|
long |
renew(long duration)
Renews subscription.
|
void |
unsubscribe()
Terminates this subscription.
|
long getTimeoutTime()
EprInfo getSubscriptionManagerAddressInfo()
Be aware that the xAddress of the returned EprInfo may be null if
the endpoint reference is not a transport address
EprInfo of this subscription's subscription managerXAddressInfo getNextXAddressInfoAfterFailureForSubscriptionManager(URI transportAddress, int syncHostedBlockVersion) throws CommunicationException
CommunicationExceptionjava.lang.String getCommunicationManagerId()
java.lang.String getServiceSubscriptionId()
java.lang.String getClientSubscriptionId()
EventSink getEventSink()
Service getService()
long renew(long duration)
throws EventingException,
java.io.IOException,
CommunicationException
duration - new duration of subscription0 in case the subscription doesn't expire at allEventingException - in case this subscription has already expired or an invalid duration was specifiedCommunicationException - if this subscription refers to a remote service and contacting it timed outjava.io.IOExceptionvoid register(long duration,
EndpointReference subscriptionManagerEpr,
java.lang.String comMgr)
duration - subscriptionManagerEpr - void unsubscribe()
throws EventingException,
java.io.IOException,
CommunicationException
EventingException - if the subscription has already expiredCommunicationException - if this subscription refers to a remote service and contacting it timed outjava.io.IOExceptionlong getStatus()
throws EventingException,
java.io.IOException,
CommunicationException
CommunicationException - if this subscription refers to a remote service and contacting it timed outEventingException - if the subscription already expiredjava.io.IOException