org.sysunit
Interface Synchronizer

All Known Implementing Classes:
LocalSynchronizer

public interface Synchronizer

TBean synchronizer.

A Synchronizer allows for blocking at a named point until all other TBeans have either blocked at some named point or terminated.

Version:
$Id: Synchronizer.java,v 1.1 2003/06/04 04:27:19 werken Exp $
Author:
Bob McWhirter
See Also:
TBeanSynchronizer, SynchronizableTBean, TBean

Method Summary
 void sync(String tbeanId, String syncPointName)
          Synchronize at a sync-point.
 

Method Detail

sync

void sync(String tbeanId,
          String syncPointName)
          throws SynchronizationException,
                 InterruptedException
Synchronize at a sync-point.

Parameters:
tbeanId - Identifier of the TBean.
syncPointName - The identifier of the sync-point.
Throws:
SynchronizationException - If an error occurs while attempting to perform synchronization.
InterruptedException - If the synchronization is interrupted.


Copyright © 2003-2009 SpritSoft, Inc.. All Rights Reserved.