All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nodeos.EmptyFlowHandle

java.lang.Object
   |
   +----nodeos.Linkable
           |
           +----nodeos.FlowHandle
                   |
                   +----nodeos.EmptyFlowHandle

public class EmptyFlowHandle
extends FlowHandle
An empty flow handle.

This class completes the abstract implementation of a flow handle by providing a checkBuffer method which always returns true.

The purpose of this class is if packets are to be dispatched to a flow unconditionally. So the "Empty" in the name refers to an empty checkBuffer method.

This flow handle can be named for debugging purposes.


Constructor Index

 o EmptyFlowHandle(String)
Class constructor.

Method Index

 o checkBuffer(Buffer, int)
Check whether that buffer belongs to that flow.

Constructors

 o EmptyFlowHandle
 public EmptyFlowHandle(String name)
Class constructor.

Parameters:
name - a human-readable name

Methods

 o checkBuffer
 public boolean checkBuffer(Buffer b,
                            int offset)
Check whether that buffer belongs to that flow.

Returns:
always true
Overrides:
checkBuffer in class FlowHandle

All Packages  Class Hierarchy  This Package  Previous  Next  Index