gumbo.util.route
Class EventGroupRouter
java.lang.Object
|
+--gumbo.util.route.EventRouter
|
+--gumbo.util.route.EventGroupRouter
- Direct Known Subclasses:
- StrictGroupRouter
- public class EventGroupRouter
- extends EventRouter
- Version:
- $Revision: 1.2 $
- Author:
- Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
Method Summary |
protected boolean |
checkConnect(int indexA,
EventNode nodeA,
int indexB,
EventNode nodeB)
Implementors should throw an exception if the nodes are incompatible
for connection, and return false if the connection should be silently
ignored. |
protected boolean |
checkDisconnect(EventNode nodeA,
EventNode nodeB)
Implementors should throw an exception if the nodes are incompatible
for disconnection, and return false if the disconnection should be
silently ignored. |
java.util.List |
getMembers()
|
protected void |
setMembers(EventRouter[] members)
|
boolean |
sync()
Forces this route's senders to send their values to this
route's receivers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventGroupRouter
public EventGroupRouter()
EventGroupRouter
public EventGroupRouter(EventRouter[] members)
getMembers
public final java.util.List getMembers()
- Returns:
- Immutable view of this group's unique and ordered
members (EventRouter). Never null.
setMembers
protected final void setMembers(EventRouter[] members)
sync
public final boolean sync()
- Description copied from class:
EventRouter
- Forces this route's senders to send their values to this
route's receivers.
- Specified by:
sync
in class EventRouter
checkConnect
protected boolean checkConnect(int indexA,
EventNode nodeA,
int indexB,
EventNode nodeB)
- Description copied from class:
EventRouter
- Implementors should throw an exception if the nodes are incompatible
for connection, and return false if the connection should be silently
ignored.
- Specified by:
checkConnect
in class EventRouter
checkDisconnect
protected boolean checkDisconnect(EventNode nodeA,
EventNode nodeB)
- Description copied from class:
EventRouter
- Implementors should throw an exception if the nodes are incompatible
for disconnection, and return false if the disconnection should be
silently ignored.
- Specified by:
checkDisconnect
in class EventRouter