|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientSubscription
Subscription interface, allows client-side management of a subscription, such
as renewing
, unsubscribing
,
obtaining the current status
, etc.
Method Summary | |
---|---|
java.lang.String |
getCommunicationManagerId()
returns the ID of the communication manager used to communicate with the subscription manager corresponding to this client subscription instance (see #getServiceSubscriptionReference() ) |
EventSink |
getEventSink()
Returns the event sink, which receives subscribed messages. |
ServiceReference |
getServiceReference()
Returns a reference to 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. |
long |
renew(long duration)
Renews subscription. |
void |
unsubscribe()
Terminates this subscription. |
Method Detail |
---|
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
managerjava.lang.String getCommunicationManagerId()
#getServiceSubscriptionReference()
)
java.lang.String getServiceSubscriptionId()
EventSink getEventSink()
ServiceReference getServiceReference()
long renew(long duration) throws EventingException, TimeoutException
duration
- new duration of subscription
0
in case the
subscription doesn't expire at all
EventingException
- in case this subscription has already expired
or an invalid duration
was specified
TimeoutException
- if this subscription refers to a remote service
and contacting it timed outvoid unsubscribe() throws EventingException, TimeoutException
EventingException
- if the subscription has already expired
TimeoutException
- if this subscription refers to a remote service
and contacting it timed outlong getStatus() throws EventingException, TimeoutException
0
means the subscription never expires.
TimeoutException
- if this subscription refers to a remote service
and contacting it timed out
EventingException
- if the subscription already expired
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |