public interface PublishSubscribeDef
Modifier and Type | Method and Description |
---|---|
boolean |
publish(WorkInfo workInfo)
Publish to do work.
|
boolean |
subscribe(WorkInfo workInfo)
Subscribe for a service.
|
void |
unpublish(KeywordInfo keyInfo,
org.licas_xml.abs.Element clientURI)
Un-publish to do work.
|
void |
unsubscribe(KeywordInfo keyInfo,
org.licas_xml.abs.Element clientURI)
Un-subscribe for a service.
|
boolean subscribe(WorkInfo workInfo) throws java.lang.Exception
WorkInfo
details. An immediate check is done to
determine if matching work is available.workInfo
- new client details. It must include the keyword list and the method
to reply with.
getClientURI()
is empty, then the request is ignored.Object
or
a WorkInfo
object, as that is what will be sent as a reply.void
(asynchronous call).
java.lang.Exception
- any error.void unsubscribe(KeywordInfo keyInfo, org.licas_xml.abs.Element clientURI) throws java.lang.Exception
keyInfo
- list of descriptive keywords to uniquely identify the service.clientURI
- the client URI defines the request client.java.lang.Exception
- any error.boolean publish(WorkInfo workInfo) throws java.lang.Exception
workInfo
- full work details, including an optional contract. The method
description must include the client URI as this is what identifies the request.
If getClientURI()
is empty, then the request is ignored.java.lang.Exception
- any error.void unpublish(KeywordInfo keyInfo, org.licas_xml.abs.Element clientURI) throws java.lang.Exception
keyInfo
- list of descriptive keywords to uniquely identify the work.clientURI
- the client URI defines the request service.java.lang.Exception
- any error.