|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ServiceInstance
).
An implementation of this interface can be used to limit number of instances
of the service that are present in the server at a time.
An instance implementing this interface is present in the context data of
org.idoox.wasp.server.WSContext
under the key
SERVICE_CONTEXT_KEY
.
Field Summary | |
static java.lang.String |
SERVICE_CONTEXT_KEY
Deprecated. Under this key an instance of this interface is present in the context data of org.idoox.wasp.server.WSContext . |
Method Summary | |
boolean |
canCreateInstance()
Deprecated. Finds out whether the current number of instances is above the limit. |
int |
getCurrentInstances()
Deprecated. Gets the current number of instances. |
int |
getMaxInstances()
Deprecated. Gets the current limit on the number of instances. |
void |
setMaxInstances(int max)
Deprecated. Sets the maximum number of instances. |
Field Detail |
public static final java.lang.String SERVICE_CONTEXT_KEY
org.idoox.wasp.server.WSContext
.
Method Detail |
public void setMaxInstances(int max)
public int getMaxInstances()
public int getCurrentInstances()
public boolean canCreateInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |