|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventSink
Interface used by a client to receive events. Incoming events/ solicit responses will be transmitted to it.
To receive events/ solicit responses, the event sink needs to have at least
one CommunicationBinding. A communication binding can be added by
Bindable.addBinding(CommunicationBinding) to the event sink. Afterwards the
event sink must be opened by open(), so that all bindings are bound
to their CommunicationManagers.
Service.subscribe(EventSink, String, org.ws4d.java.types.URISet, long)
.
| Method Summary | |
|---|---|
void |
addSubscription(java.lang.String clientSubId,
ClientSubscription subscription)
Internal method used within the subscription process. |
void |
close()
Closes event receiving for this event endpoint. |
EventListener |
getEventListener()
Get associated event listener of this event sink. |
ClientSubscription |
getSubscription(java.lang.String clientSubId)
|
boolean |
isOpen()
Returns if event sink is open to receive notifications/ solicit responses. |
void |
open()
Opens event receiving for this event endpoint. |
ParameterValue |
receiveLocalEvent(java.lang.String clientSubscriptionId,
URI actionUri,
ParameterValue outputParameter)
Callback method for receiving local notifications/ solicit responses. |
| Methods inherited from interface org.ws4d.java.communication.Bindable |
|---|
addBinding, clearBindings, getBindings, hasBindings, removeBinding, supportsBindingChanges |
| Method Detail |
|---|
EventListener getEventListener()
ParameterValue receiveLocalEvent(java.lang.String clientSubscriptionId,
URI actionUri,
ParameterValue outputParameter)
clientSubscriptionId - Subscription id the client sent to the
service for subscription.actionUri - Action of event fired.outputParameter - The parameter value the service transmitted with
the event message.
nullboolean isOpen()
true - if event sink is open to receive events/
solicit responses, else false.
void open()
throws EventingException
EventingException - in case opening this event sink fails for any
reason (e.g. binding to a specified local address fails)void close()
void addSubscription(java.lang.String clientSubId,
ClientSubscription subscription)
Service.subscribe(EventSink, String, org.ws4d.java.types.URISet, long)
.
clientSubId - client subscription idsubscription - client subscriptionClientSubscription getSubscription(java.lang.String clientSubId)
clientSubId -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||