|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUIRequestPool
Manage UIRequest
s. The pool consists of 2 sets, one of active
UIRequest
s and a second with suspended UIRequest
s. Different
implementations will influence on the Next UIRequest
selection,
implementing for example priority queues.
Method Summary | |
---|---|
void |
add(UIRequest UIReq)
Add a new UIRequest . |
void |
close(String UIReqID)
Remove the UIRequest corresponding with UIReqID from any set it
belongs to. if the UIRequest is the current request, then after
this call getCurrent() == null. |
UIRequest |
get(String UIReqID)
get the UIRequest corresponding to the UIReqID. |
UIRequest |
getCurrent()
Get the currently selected UIRequest . |
UIRequest |
getNextUIRequest()
If hasToChange() then get the next
UIRequest , updating the current. |
boolean |
hasToChange()
Whether the current UIRequest has to change. |
Collection<UIRequest> |
listAllActive()
Get the Active UIRequest set. |
Collection<UIRequest> |
listAllSuspended()
Get the Suspended UIRequest set. |
void |
removeAll()
Remove all entries in all sets. |
void |
suspend(String UIReqID)
Move a UIRequest from the active set to the suspendend one. |
void |
unsuspend(String UIReqID)
Move a UIRequest from the suspendend set to the active one. |
Method Detail |
---|
void add(UIRequest UIReq)
UIRequest
. Directly to the active set.
UIReq
- void close(String UIReqID)
UIRequest
corresponding with UIReqID from any set it
belongs to. if the UIRequest
is the current request, then after
this call getCurrent()
== null.
UIReqID
- UIRequest getCurrent()
UIRequest
.
UIRequest
null if sets are empty.UIRequest getNextUIRequest()
hasToChange()
then get the next
UIRequest
, updating the current. After this call
getNextUIRequest()
==
getCurrent()
UIRequest
to be current.boolean hasToChange()
UIRequest
has to change.
Collection<UIRequest> listAllActive()
UIRequest
set.
UIRequest
sCollection<UIRequest> listAllSuspended()
UIRequest
set.
UIRequest
void removeAll()
void suspend(String UIReqID)
UIRequest
from the active set to the suspendend one. If
current is suspended then getCurrent()
== null
UIReqID
- void unsuspend(String UIReqID)
UIRequest
from the suspendend set to the active one.
UIReqID
- UIRequest get(String UIReqID)
UIRequest
corresponding to the UIReqID.
UIReqID
-
UIRequest
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |