|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WsSpace
Proxy interface for SemiSpace. Everything defined as string is supplied as XML, instead of Objects. Otherwise it is equal to the SemiSpace interface.
Method Summary | |
---|---|
String |
read(String template,
long queryLifeMs)
Supply an XML template, which will be matched on the first. |
String |
readIfExists(String template)
Read without any timeout; You get an answer immediately |
String |
take(String template,
long queryLifeMs)
Same as read, except that the entry is removed from the space. |
String |
takeIfExists(String template)
|
void |
write(String contents,
long timeToLiveMs)
Put XML structured data into space with given lifetime |
Method Detail |
---|
void write(String contents, long timeToLiveMs)
contents
- XML dataString read(String template, long queryLifeMs)
The entry is left in the spaceErlend SemiSpace
template
- XML templatequeryLifeMs
- Life of query in milliseconds. Notice that
you will want to repeatedly read instead of having
a very long timeout (i.e. more than 30 seconds)String readIfExists(String template)
read(String, long)
String take(String template, long queryLifeMs)
read(String, long)
String takeIfExists(String template)
take(String, long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |