org.tranche.flatfile
Class HashSpanFixingThreadPolicyDecider

java.lang.Object
  extended by org.tranche.flatfile.HashSpanFixingThreadPolicyDecider
All Implemented Interfaces:
RemoteCallbackPurgeListener

public class HashSpanFixingThreadPolicyDecider
extends java.lang.Object
implements RemoteCallbackPurgeListener

Object will decide how to interpret events to control the HashSpanFixingThread.

There will be safety switches in place to allow human administrator to lock values.

Author:
Bryan E. Smith - bryanesmith@gmail.com

Constructor Summary
HashSpanFixingThreadPolicyDecider(FlatFileTrancheServer ffts, HashSpanFixingThread healingThread)
           
 
Method Summary
 void close()
           
 void fireCallbackPurged(RemoteCallback callback, RemoteTrancheServer server, long createdTimestamp)
          Fired when a callback is purged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSpanFixingThreadPolicyDecider

public HashSpanFixingThreadPolicyDecider(FlatFileTrancheServer ffts,
                                         HashSpanFixingThread healingThread)
Parameters:
ffts -
healingThread -
Method Detail

close

public void close()

fireCallbackPurged

public void fireCallbackPurged(RemoteCallback callback,
                               RemoteTrancheServer server,
                               long createdTimestamp)

Fired when a callback is purged.

Specified by:
fireCallbackPurged in interface RemoteCallbackPurgeListener
Parameters:
callback -
server -
createdTimestamp -


This code is free for use both commercially and non-commercially as stated in the project's license