T
- the inbound and outbound type.public class IdentityFilterFactory<T> extends Object implements FilterFactory<OobFilter<T,T>,T,T,ConnectionHandler<?>>, OobFilter<T,T>
FilterFactory
that creates identity filters, which simply pull values off of the input
queue and push them onto the output queue.Modifier and Type | Field and Description |
---|---|
protected static IdentityFilterFactory<?> |
instance
The global
IdentityFilterFactory instance. |
Constructor and Description |
---|
IdentityFilterFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyInbound(Queue<T> inputs,
Queue<T> outputs)
Filters traffic in the inbound direction.
|
void |
applyInboundOob(Queue<OobEvent> inputs,
Queue<OobEvent> outputs)
Processes an
OobEvent as it would apply to the inbound direction. |
void |
applyOutbound(Queue<T> inputs,
Queue<T> outputs)
Filters traffic in the outbound direction.
|
void |
applyOutboundOob(Queue<OobEvent> inputs,
Queue<OobEvent> outputs)
Processes an
OobEvent as it would apply to the outbound direction. |
static <T> IdentityFilterFactory<T> |
getInstance()
Gets the global instance.
|
static <T> OobFilter<T,T> |
newFilter()
Creates a new identity
Filter . |
OobFilter<T,T> |
newFilter(ConnectionHandler<?> handler)
Creates a new
Filter . |
protected static final IdentityFilterFactory<?> instance
IdentityFilterFactory
instance.public static final <T> IdentityFilterFactory<T> getInstance()
T
- the inbound and outbound type.public static final <T> OobFilter<T,T> newFilter()
Filter
.T
- the input and output type.public void applyInbound(Queue<T> inputs, Queue<T> outputs)
Filter
public void applyOutbound(Queue<T> inputs, Queue<T> outputs)
Filter
public void applyInboundOob(Queue<OobEvent> inputs, Queue<OobEvent> outputs)
OobFilter
OobEvent
as it would apply to the inbound direction.public void applyOutboundOob(Queue<OobEvent> inputs, Queue<OobEvent> outputs)
OobFilter
OobEvent
as it would apply to the outbound direction.public OobFilter<T,T> newFilter(ConnectionHandler<?> handler)
FilterFactory
Filter
.newFilter
in interface FilterFactory<OobFilter<T,T>,T,T,ConnectionHandler<?>>