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
Method Summary
Modifier and TypeMethodDescriptionvoid
onConnection
(SessionTransMgr manager) Called when a connection is established.void
onDisposed
(SessionTransMgr manager) Called when a connection is disposed of.void
onPause
(SessionTransMgr manager) Called when a connection is paused.void
onReconnected
(SessionTransMgr manager) Called when a connection is reconnected.void
processTransaction
(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:
onConnection
in 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:
processTransaction
in interfaceITransactionProcessor
- Parameters:
trans
- The transaction to process.
onPause
Called when a connection is paused.- Specified by:
onPause
in interfaceITransactionProcessor
onReconnected
Called when a connection is reconnected.- Specified by:
onReconnected
in interfaceITransactionProcessor
onDisposed
Called when a connection is disposed of.- Specified by:
onDisposed
in interfaceITransactionProcessor