com.bankframe.ei.txnhandler.storeandforward.impl.forwardtransaction
Class ForwardingThread

java.lang.Object
  extended by com.bankframe.ei.txnhandler.storeandforward.impl.forwardtransaction.ForwardingThread
All Implemented Interfaces:
Runnable

public class ForwardingThread
extends Object
implements Runnable

This thread class monitors the connection to the host system. It is used with the store class to determine whether request in the store can be released to the host system. Every x seconds the thread will attempt to send a request to the host system. This will only happen if the store is non-empty.


Constructor Summary
ForwardingThread(String name)
          Forwarding thread constructor.
ForwardingThread(String name, int delay)
          Forwarding thread constructor.
ForwardingThread(String name, SortedSet list)
          Forwarding thread constructor.
ForwardingThread(String name, SortedSet list, int delay)
          Forwarding thread constructor.
 
Method Summary
 void run()
          This method forwards transactions from the store
 void start()
          This method starts the forwarding thread at the lowest priority
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingThread

public ForwardingThread(String name)
Forwarding thread constructor. This constructor reads the delay time from the BankFrameResource.properties file and is set to forward all transactions in the store


ForwardingThread

public ForwardingThread(String name,
                        int delay)
Forwarding thread constructor. This constructor takes the delay time from passed parameter and is set to forward all transactions in the store

Parameters:
name - String
delay - the number of seconds that the ForwardingThread waits between forwards

ForwardingThread

public ForwardingThread(String name,
                        SortedSet list)
Forwarding thread constructor. This constructor takes the delay time from the BankFrameResource.properties file and is set to forward a subset of transactions in the store.

Parameters:
name -
list -

ForwardingThread

public ForwardingThread(String name,
                        SortedSet list,
                        int delay)
Forwarding thread constructor. This constructor takes the delay time from passed parameter and is set to forward a subset of transactions in the store

Parameters:
name - String
list - SortedSet
delay - int the number of seconds that the ForwardingThread waits between forwards
Method Detail

run

public void run()
This method forwards transactions from the store

Specified by:
run in interface Runnable

start

public void start()
This method starts the forwarding thread at the lowest priority



Copyright © 2005, 2007, Oracle. All rights reserved.