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 theBidirectionalConnectionComponent
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 theBidirectionalConnectionOpenable.open(Object, Object)
method (as it may have been passed via the constructor), you may use theLinkComponent
interface with itsOpenable.open()
method, which does not require any arguments specifying a connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,OUTPUT>
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
-
-