com.continuent.tungsten.replicator.util
Class EventIdWatchPredicate

java.lang.Object
  extended by com.continuent.tungsten.replicator.util.EventIdWatchPredicate
All Implemented Interfaces:
WatchPredicate<ReplDBMSHeader>

public class EventIdWatchPredicate
extends java.lang.Object
implements WatchPredicate<ReplDBMSHeader>

Implements a WatchPredicate to identify that a particular native event ID has been reached. This returns true for any event ID equal to or higher than the number we are seeking.

Version:
1.0
Author:
Robert Hodges

Constructor Summary
EventIdWatchPredicate(java.lang.String eventId)
           
 
Method Summary
 boolean match(ReplDBMSHeader event)
           
 java.lang.String toString()
          Returns the class name and the event id for which we waiting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventIdWatchPredicate

public EventIdWatchPredicate(java.lang.String eventId)
Method Detail

match

public boolean match(ReplDBMSHeader event)
Specified by:
match in interface WatchPredicate<ReplDBMSHeader>

toString

public java.lang.String toString()
Returns the class name and the event id for which we waiting.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()