|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class defines methods to manage Callback
instances related to AsynchronousReference
.
Each instance has a global object scope default
Callback
instance but a local thread scope
default Callback
instance may also be
set.
If multiple callbacks are needed, see CallbackList
.
AsynchronousReference
,
Callback
,
CallbackList
Method Summary | |
Callback |
getCallback()
Returns the local thread scope Callback if it exists, returns the
global object scope Callback
otherwise.
|
Callback |
getGlobalCallback()
Returns this global object scope Callback . |
Callback |
getLocalCallback()
Returns the local thread scope Callback . |
void |
setGlobalCallback(Callback callback)
Sets this global object scope Callback . |
void |
setLocalCallback(Callback callback)
Sets the local thread scope Callback . |
Method Detail |
public Callback getGlobalCallback()
Returns this global object scope
Callback
.
The Callback
returns is the one which is
associated to this
instance.
Callback
.Callback
public void setGlobalCallback(Callback callback)
Sets this global object scope
Callback
.
After this call, this
instance is associated to the
given Callback
.
callback
- the global object scope
Callback
to set.public Callback getLocalCallback()
Returns the local thread scope
Callback
.
The Callback
returns is the one which is
associated to the
Callback
.Callback
public void setLocalCallback(Callback callback)
Sets the local thread scope
Callback
.
After this call, the Callback
.
callback
- the local thread scope
Callback
public Callback getCallback()
Callback
if it exists, returns the
global object scope Callback
otherwise.
Returns the Callback
associated with the
Callback
associated with this instance
otherwise.
Callback
if it exists, returns the
global object scope Callback
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |