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.


Constructor Index

 o QUEUE()

Method Index

 o Down(Event)
An event is to be sent down the stack.
 o GetName()
All protocol names have to be unique !
 o ProvidedDownServices()
List of events that are provided to layers below (they will be handled when sent down from below).
 o ProvidedUpServices()
List of events that are provided to layers above (they will be handled when sent down from above).
 o SetProperties(Properties)
Configures the protocol initially.
 o Up(Event)
Queues or passes up events.

Constructors

 o QUEUE
 public QUEUE()

Methods

 o GetName
 public String GetName()
All protocol names have to be unique !

Overrides:
GetName in class Protocol
 o 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
 o 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
 o SetProperties
 public boolean SetProperties(Properties props)
Configures the protocol initially.

Overrides:
SetProperties in class Protocol
 o 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
 o 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