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 theBidirectionalConnectionComponentinterface 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 theLinkComponentinterface with itsOpenable.open()method, which does not require any arguments specifying a connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT,OUTPUT>A system implementing theBidirectionalConnectionComponent.BidirectionalConnectionAutomatoninterface supports managingBidirectionalConnectionComponentinstances 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
-
-