Package org.jpos.transaction.participant
Class QueryHost
- java.lang.Object
-
- org.jpos.transaction.participant.QueryHost
-
- All Implemented Interfaces:
Configurable
,ISOResponseListener
,TransactionConstants
,TransactionParticipant
public class QueryHost extends java.lang.Object implements TransactionParticipant, ISOResponseListener, Configurable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TIMEOUT_NAME
-
Constructor Summary
Constructors Constructor Description QueryHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expired(java.lang.Object handBack)
protected boolean
isConnected(MUX mux)
int
prepare(long id, java.io.Serializable ser)
Called by TransactionManager in preparation for a transactionprotected long
resolveTimeout(Context ctx)
void
responseReceived(ISOMsg resp, java.lang.Object handBack)
void
setConfiguration(Configuration cfg)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpos.transaction.TransactionParticipant
abort, commit
-
-
-
-
Field Detail
-
TIMEOUT_NAME
public static final java.lang.String TIMEOUT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryHost
public QueryHost()
-
-
Method Detail
-
prepare
public int prepare(long id, java.io.Serializable ser)
Description copied from interface:TransactionParticipant
Called by TransactionManager in preparation for a transaction- Specified by:
prepare
in interfaceTransactionParticipant
- Parameters:
id
- the Transaction identifierser
- transaction context- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
-
responseReceived
public void responseReceived(ISOMsg resp, java.lang.Object handBack)
- Specified by:
responseReceived
in interfaceISOResponseListener
-
expired
public void expired(java.lang.Object handBack)
- Specified by:
expired
in interfaceISOResponseListener
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
resolveTimeout
protected long resolveTimeout(Context ctx)
-
isConnected
protected boolean isConnected(MUX mux)
-
-