@SleeEvent(id=@ComponentId(name="com.opencloud.rhino.resources.sessionownership.SessionOwnershipReadResultEvent",vendor="OpenCloud",version="1.0")) public final class SessionOwnershipReadResultEvent extends Object
This event is fired on a SessionOwnershipActivity to report the outcome of a retrieve query operation.
Constructor and Description |
---|
SessionOwnershipReadResultEvent(long queryID,
boolean successful,
Set<SessionOwnershipRecord> records) |
Modifier and Type | Method and Description |
---|---|
long |
getQueryID()
The query identifier.
|
Set<SessionOwnershipRecord> |
getReadRecords()
Get the records obtained as a result of the retrieve query operation.
|
boolean |
getReadSuccess()
Determine if the read was successful or not.
|
String |
toString() |
public SessionOwnershipReadResultEvent(long queryID, boolean successful, Set<SessionOwnershipRecord> records)
public long getQueryID()
The query identifier. This identifier equals that allocated and reported back to the SBB when the query was initiated.
public boolean getReadSuccess()
Determine if the read was successful or not.
A read that returns no results is still considered a successful outcome to the query. A read is only unsuccessful if an error occurs trying to obtain a result for the query.
true
if the read was successful, false
otherwise.public Set<SessionOwnershipRecord> getReadRecords()
Get the records obtained as a result of the retrieve query operation.