All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.JavaStack.Protocols.QUEUE
java.lang.Object
|
+----JavaGroups.JavaStack.Protocol
|
+----JavaGroups.JavaStack.Protocols.QUEUE
- public class QUEUE
- extends Protocol
Queuing layer. Upon reception of event START_QUEUEING, all events traveling through
this layer upwards/downwards (depending on direction of event) will be queued. Upon
reception of a STOP_QUEUEING event, all events will be released. Finally, the
queueing flag is reset.
When queueing, only event STOP_QUEUEING (received up or downwards) will be allowed
to release queueing.
-
QUEUE()
-
-
Down(Event)
- An event is to be sent down the stack.
-
GetName()
- All protocol names have to be unique !
-
ProvidedDownServices()
- List of events that are provided to layers below (they will be handled when sent down from
below).
-
ProvidedUpServices()
- List of events that are provided to layers above (they will be handled when sent down from
above).
-
SetProperties(Properties)
- Configures the protocol initially.
-
Up(Event)
- Queues or passes up events.
QUEUE
public QUEUE()
GetName
public String GetName()
- All protocol names have to be unique !
- Overrides:
- GetName in class Protocol
ProvidedUpServices
public Vector ProvidedUpServices()
- List of events that are provided to layers above (they will be handled when sent down from
above).
- Overrides:
- ProvidedUpServices in class Protocol
ProvidedDownServices
public Vector ProvidedDownServices()
- List of events that are provided to layers below (they will be handled when sent down from
below).
- Overrides:
- ProvidedDownServices in class Protocol
SetProperties
public boolean SetProperties(Properties props)
- Configures the protocol initially.
- Overrides:
- SetProperties in class Protocol
Up
public void Up(Event evt)
- Queues or passes up events. No queue sync. necessary, as this method is never called
concurrently.
- Overrides:
- Up in class Protocol
Down
public void Down(Event evt)
- An event is to be sent down the stack.
- Overrides:
- Down in class Protocol
All Packages Class Hierarchy This Package Previous Next Index