public interface SessionOwnershipReadListener
Callback interface for Session Ownership Facility users that reports the outcome of read (retrieve) query operations.
Modifier and Type | Method and Description |
---|---|
void |
onReadFailure(Exception e)
Callback made when the session ownership facility is unable to complete a read query operation successfully.
|
void |
onReadSuccess(Set<SessionOwnershipRecord> records)
Callback made when the session ownership facility completes a read query operation successfully.
|
void onReadSuccess(Set<SessionOwnershipRecord> records)
Callback made when the session ownership facility completes a read query operation successfully.
records
- a set containing all the retrieved records.
This may be an empty set if no records were found for the query.void onReadFailure(Exception e)
Callback made when the session ownership facility is unable to complete a read query operation successfully.
e
- the exception that caused the failure, or null
if there was no associated exception.