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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- 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- VSViewerTransactionCommListenerThe constructor.- Parameters:
- uri- The URI.
- worker- The worker.
- Throws:
- IOException- For URI errors.
 
 
- Method Details- onConnectionCalled when a connection is established.- Specified by:
- onConnectionin interface- ITransactionProcessor
 
- processTransactionProcess 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 interface- ITransactionProcessor
- Parameters:
- trans- The transaction to process.
 
- onPauseCalled when a connection is paused.- Specified by:
- onPausein interface- ITransactionProcessor
 
- onReconnectedCalled when a connection is reconnected.- Specified by:
- onReconnectedin interface- ITransactionProcessor
 
- onDisposedCalled when a connection is disposed of.- Specified by:
- onDisposedin interface- ITransactionProcessor