|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semispace.ws.WsSpaceImpl
public class WsSpaceImpl
Implementation of unauthenticated space access.
You need to set the space.
| Constructor Summary | |
|---|---|
WsSpaceImpl()
|
|
| 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 |
protected Holder |
retrievePropertiesFromXml(String xmlsource)
Protected for the benefit of junit test(s) |
void |
setSpace(SemiSpace space)
For the benefit of spring |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WsSpaceImpl()
| Method Detail |
|---|
public void setSpace(SemiSpace space)
public void write(String contents,
long timeToLiveMs)
WsSpace
write in interface WsSpacecontents - XML data
public String read(String template,
long queryLifeMs)
WsSpaceThe entry is left in the spaceErlend SemiSpace
read in interface WsSpacetemplate - 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)public String readIfExists(String template)
WsSpace
readIfExists in interface WsSpaceWsSpace.read(String, long)
public String take(String template,
long queryLifeMs)
WsSpace
take in interface WsSpaceWsSpace.read(String, long)public String takeIfExists(String template)
takeIfExists in interface WsSpaceWsSpace.take(String, long)protected Holder retrievePropertiesFromXml(String xmlsource)
WsSpaceImpl#retrievePropertiesFromObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||