public abstract class AbstractBarrierGroups extends Object implements BarrierGroups
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractBarrierGroups.BarrierGroupImplementation
Basic
BarrierGroup implementation. |
Constructor and Description |
---|
AbstractBarrierGroups() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAll()
Calls
BarrierGroup.cancelAll() on all of our barrier groups. |
protected abstract AbstractBarrierGroups.BarrierGroupImplementation |
createBarrierGroup(String name)
Factory method through which subclasses provide an appropriate barrier
group implementation.
|
protected AbstractBarrierGroups.BarrierGroupImplementation |
getExistingGroup(String name)
Provide subclasses a way to access to an existing group without creating
one if it doesn't exist.
|
BarrierGroup |
getGroup(String name)
Obtain a barrier group.
|
String |
toString() |
public final BarrierGroup getGroup(String name)
getGroup
in interface BarrierGroups
name
- Group name.public final void cancelAll() throws CommunicationException
BarrierGroup.cancelAll()
on all of our barrier groups.CommunicationException
- If a network problem occurred.protected final AbstractBarrierGroups.BarrierGroupImplementation getExistingGroup(String name)
name
- Barrier name.null
if none exists.protected abstract AbstractBarrierGroups.BarrierGroupImplementation createBarrierGroup(String name)
name
- Barrier name.Copyright © 2000-2014. All Rights Reserved.