Module org.refcodes.component
Package org.refcodes.component
Interface BidirectionalConnectionComponent<INPUT,OUTPUT>
- Type Parameters:
INPUT
- The type of the input connection to be used.OUTPUT
- The type of the output connection to be used.
- All Superinterfaces:
BidirectionalConnectionOpenable<INPUT,
,OUTPUT> Closable
- All Known Subinterfaces:
BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,
OUTPUT>
public interface BidirectionalConnectionComponent<INPUT,OUTPUT>
extends BidirectionalConnectionOpenable<INPUT,OUTPUT>, Closable
A component implementing the
BidirectionalConnectionComponent
interface supports a connection. I.e. such a component may be instructed open
or close a connection: "open" - "close" In case no connection is to be
provided to the BidirectionalConnectionOpenable.open(Object, Object)
method (as it may have been
passed via the constructor), you may use the LinkComponent
interface
with its Openable.open()
method, which does not require any arguments
specifying a connection.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A system implementing theBidirectionalConnectionComponent.BidirectionalConnectionAutomaton
interface supports managingBidirectionalConnectionComponent
instances and takes care that the open/close statuses are invoked in the correct order by throwing according exceptions in case the open/close-cycle is invoked in the wrong order.Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionOpenable
BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,
OUTPUT> Nested classes/interfaces inherited from interface org.refcodes.component.Closable
Closable.CloseAutomaton, Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
-
Method Summary
Methods inherited from interface org.refcodes.component.BidirectionalConnectionOpenable
open
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked