Package com.iizigo.vs.viewer
Class VSViewerTransactionCommListener
java.lang.Object
com.iizigo.vs.viewer.VSViewerTransactionCommListener
- All Implemented Interfaces:
ITransactionProcessor
The VS Viewer session transaction communication listener.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoidonConnection(SessionTransMgr manager) Called when a connection is established.voidonDisposed(SessionTransMgr manager) Called when a connection is disposed of.voidonPause(SessionTransMgr manager) Called when a connection is paused.voidonReconnected(SessionTransMgr manager) Called when a connection is reconnected.voidprocessTransaction(SessionTransMgr manager, ReadTransaction trans) Process incoming transaction that itself can consist of several sub-transactions.
Constructor Details
VSViewerTransactionCommListener
The constructor.- Parameters:
uri- The URI.worker- The worker.- Throws:
IOException- For URI errors.
Method Details
onConnection
Called when a connection is established.- Specified by:
onConnectionin interfaceITransactionProcessor
processTransaction
Process incoming transaction that itself can consist of several sub-transactions.Management transaction are not present here, but GConstants.TRANS_NEXT_SERIAL that should call
manager.onNextSerialTransaction();.- Specified by:
processTransactionin interfaceITransactionProcessor- Parameters:
trans- The transaction to process.
onPause
Called when a connection is paused.- Specified by:
onPausein interfaceITransactionProcessor
onReconnected
Called when a connection is reconnected.- Specified by:
onReconnectedin interfaceITransactionProcessor
onDisposed
Called when a connection is disposed of.- Specified by:
onDisposedin interfaceITransactionProcessor