Package com.iizigo.vs.viewer
Class VSViewerTransactionCommListener
- java.lang.Object
- com.iizigo.vs.viewer.VSViewerTransactionCommListener
- All Implemented Interfaces:
ITransactionProcessor
public class VSViewerTransactionCommListener extends java.lang.Object implements ITransactionProcessor
The VS Viewer session transaction communication listener.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description VSViewerTransactionCommListener(java.lang.String uri, Worker worker)
The constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
VSViewerTransactionCommListener
public VSViewerTransactionCommListener(java.lang.String uri, Worker worker) throws java.io.IOException
The constructor.- Parameters:
uri
- The URI.worker
- The worker.- Throws:
java.io.IOException
- For URI errors.
Method Detail
onConnection
public void onConnection(SessionTransMgr manager)
Called when a connection is established.- Specified by:
onConnection
in interfaceITransactionProcessor
processTransaction
public void processTransaction(SessionTransMgr manager, ReadTransaction trans)
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
public void onPause(SessionTransMgr manager)
Called when a connection is paused.- Specified by:
onPause
in interfaceITransactionProcessor
onReconnected
public void onReconnected(SessionTransMgr manager)
Called when a connection is reconnected.- Specified by:
onReconnected
in interfaceITransactionProcessor
onDisposed
public void onDisposed(SessionTransMgr manager)
Called when a connection is disposed of.- Specified by:
onDisposed
in interfaceITransactionProcessor