Package org.jcsp.util.filter
Class PoisonFilter
java.lang.Object
org.jcsp.util.filter.PoisonFilter
- All Implemented Interfaces:
Filter
This filter will throw a
PoisonException
when filter(Object)
is called. This can be
used to prevent a channel from being written to or read from.- Author:
- Quickstone Technologies Limited
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new filter with the default message.PoisonFilter
(String message) Constructs a new filter with a specific message. -
Method Summary
-
Constructor Details
-
PoisonFilter
public PoisonFilter()Constructs a new filter with the default message. -
PoisonFilter
Constructs a new filter with a specific message.
-
-
Method Details
-
filter
Description copied from interface:Filter
Applies the filter operation. The object given can be modified and returned or another object substituted in its place.
-