|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChordCallback
This is the interface that must be implemented by classes
that can be used as callback for method invocations on AsynChord.
An instance of this must be passed as parameter to on of the methods:
AsynChord#insert(Key, Serializable, ChordCallback)AsynChord#remove(Key, Serializable, ChordCallback)AsynChord#retrieve(Key, ChordCallback)#inserted(Key, Serializable, Throwable)#removed(Key, Serializable, Throwable)#retrieved(Key, Set, Throwable)Throwable parameter of these methods is null
if the corresponding method has been executed successfully.
| Method Summary | |
|---|---|
void |
inserted(java.lang.String res,
java.io.Serializable entry,
java.lang.Throwable t)
This method is called, when a call to AsynChord#insert(Key, Serializable, ChordCallback)
has been finished. |
void |
removed(java.lang.String res,
java.io.Serializable entry,
java.lang.Throwable t)
This is the callback method for removal of the entry
with key. |
void |
retrieved(java.lang.String res,
java.util.Set<java.io.Serializable> entries,
java.lang.Throwable t)
This is the callback method for retrieval of values associated with key. |
| Method Detail |
|---|
void retrieved(java.lang.String res,
java.util.Set<java.io.Serializable> entries,
java.lang.Throwable t)
key. This method is called
when an invocation of
AsynChord#retrieve(Key, ChordCallback) has finished.
key - The Key that has been used for the retrieval.entries - The retrieved entries. Empty Set, if no values
are associated with key.t - Any Throwable that occured during execution
of AsynChord#retrieve(Key, ChordCallback).
This is null if retrieval of key
was succesful.
void inserted(java.lang.String res,
java.io.Serializable entry,
java.lang.Throwable t)
AsynChord#insert(Key, Serializable, ChordCallback)
has been finished.
key - The Key that should be used for insertion.entry - The entry that should be inserted.t - Any Throwable that occured during execution
of AsynChord#insert(Key, Serializable, ChordCallback).
This is null if insertion of key and
entry was succesful.
void removed(java.lang.String res,
java.io.Serializable entry,
java.lang.Throwable t)
entry
with key.
key - The Key of the entry that should be removed.entry - The entry that should be removed.t - Any Throwable that occured during execution
of AsynChord#remove(Key, Serializable, ChordCallback).
This is null if removal of
entry was succesful.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||