public final class TuxXidRply
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
TuxXidRply.LockReqXid |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList |
genWaiters |
private TXidERFactory |
myERFactory |
private java.util.HashMap |
myMap |
private java.util.LinkedList |
specWaiters |
Constructor and Description |
---|
TuxXidRply() |
TuxXidRply(TXidERFactory anERFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add_reply(gwatmi where_from,
Txid txid,
tfmh message) |
ReqXidMsg |
get_reply(boolean block) |
tfmh |
get_specific_reply(ReqXidOid request_oid,
boolean block) |
private TuxXidRply.LockReqXid |
getEligibleWaiter(ReqXidOid reqXidOid) |
private java.util.HashMap myMap
private java.util.LinkedList genWaiters
private java.util.LinkedList specWaiters
private TXidERFactory myERFactory
public TuxXidRply()
public TuxXidRply(TXidERFactory anERFactory)
public void add_reply(gwatmi where_from, Txid txid, tfmh message)
where_from
- From which gwatmi object did this request come fromreqid
- The gwatmi instance request id associated with this messagetxid
- The transaction key associated with this messagemessage
- The reply messagepublic ReqXidMsg get_reply(boolean block)
block
- Should I block until this message arrives?public tfmh get_specific_reply(ReqXidOid request_oid, boolean block)
request_oid
- The request object identifier for this requestblock
- Should we block waiting for this replyprivate TuxXidRply.LockReqXid getEligibleWaiter(ReqXidOid reqXidOid)
reqXidOid
- the id of the reply for which a waiters is to be foundLockReqXid
identifying the matched waiter.