com.continuent.tungsten.replicator.event
Class ReplEvent

java.lang.Object
  extended by com.continuent.tungsten.replicator.event.ReplEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ReplControlEvent, ReplDBMSEvent

public abstract class ReplEvent
extends java.lang.Object
implements java.io.Serializable

This class is the superclass from which all replication events inherit. It defines minimal shared behavior. This is currently restricted to providing a common serialization interface and estimated size to help with memory management. Estimated size is a hint and does not have to be exact. It is designed to help us tell whether the object in question needs a lot of heap memory.

Version:
1.0
Author:
Alex Yurchenko
See Also:
Serialized Form

Constructor Summary
ReplEvent()
           
 
Method Summary
 int getEstimatedSize()
          Returns the estimated serialized size of this event, if known.
abstract  long getSeqno()
          Returns the sequence number of this event.
 void setEstimatedSize(int estimatedSize)
          Sets the estimated serialized size of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplEvent

public ReplEvent()
Method Detail

getSeqno

public abstract long getSeqno()
Returns the sequence number of this event.


getEstimatedSize

public int getEstimatedSize()
Returns the estimated serialized size of this event, if known.


setEstimatedSize

public void setEstimatedSize(int estimatedSize)
Sets the estimated serialized size of this event.