|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubscriptionManager
Method Summary | |
---|---|
long |
getStatus(ClientSubscription subscription)
This method should be called each time a service receives a request to obtain the status of a subscription from a client. |
GetStatusResponseMessage |
getStatus(GetStatusMessage msg,
ProtocolData protocolData)
This method should be called each time a local service receives a request to obtain the status of a subscription from a client. |
boolean |
isRemote()
|
long |
renew(ClientSubscription subscription,
long duration)
Renews an existing subscription with new duration. |
RenewResponseMessage |
renew(RenewMessage msg,
ProtocolData protocolData)
This method should be called each time a local service receives a request to renew a subscription from a client. |
void |
sendSubscriptionEnd()
Notifies each subscribed event sink / event listener that the service has terminated the subscription. |
ClientSubscription |
subscribe(EventSink sink,
java.lang.String clientSubscriptionId,
URISet eventActionURIs,
long duration)
Subscribe to subscription for local client. |
SubscribeResponseMessage |
subscribe(SubscribeMessage msg,
ProtocolData protocolData)
This method should be called each time a local service receives a subscription request from a remote client. |
void |
unsubscribe(ClientSubscription subscription)
This method should be called each time a service receives a request to cancel a subscription from a local client. |
UnsubscribeResponseMessage |
unsubscribe(UnsubscribeMessage msg,
ProtocolData protocolData)
This method should be called each time a local service receives a request to cancel a subscription from a remote client. |
Method Detail |
---|
SubscribeResponseMessage subscribe(SubscribeMessage msg, ProtocolData protocolData) throws SOAPException
msg
- the subscribe message describing the request
SOAPException
- in case the subscription failed for any reason, a
fault message with further details can be obtained from this
SOAPException
(see
SOAPException.getFault()
)ClientSubscription subscribe(EventSink sink, java.lang.String clientSubscriptionId, URISet eventActionURIs, long duration) throws EventingException
sink
- clientSubscriptionId
- eventActionURIs
- duration
-
EventingException
UnsubscribeResponseMessage unsubscribe(UnsubscribeMessage msg, ProtocolData protocolData) throws SOAPException
msg
- the unsubscribe message describing the request
SOAPException
- in case the cancellation failed for any reason, a
fault message with further details can be obtained from this
SOAPException
(see
SOAPException.getFault()
)void unsubscribe(ClientSubscription subscription) throws EventingException, TimeoutException
subscription
- Client subscription.
EventingException
TimeoutException
RenewResponseMessage renew(RenewMessage msg, ProtocolData protocolData) throws SOAPException
msg
- the renew message describing the request
SOAPException
- in case the renewal failed for any reason, a fault
message with further details can be obtained from this
SOAPException
(see
SOAPException.getFault()
)long renew(ClientSubscription subscription, long duration) throws EventingException, TimeoutException
subscription
- duration
-
EventingException
TimeoutException
GetStatusResponseMessage getStatus(GetStatusMessage msg, ProtocolData protocolData) throws SOAPException
msg
- the get status message describing the request
SOAPException
- in case the status query failed for any reason, a
fault message with further details can be obtained from this
SOAPException
(see
SOAPException.getFault()
)long getStatus(ClientSubscription subscription) throws EventingException, TimeoutException
subscription
-
EventingException
TimeoutException
void sendSubscriptionEnd()
boolean isRemote()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |