CON
- The type of the connection to be used.Closable
, ConnectionOpenable<CON>
CompositeComponent.ExtendedCompositeComponent<CTX,CON>
, ConnectionComponent.ConnectionAutomaton<CON>
, ConnectionComponent.ConnectionComponentBuilder<CON,B>
CompositeComponentImpl.ExtendedCompositeComponentImpl
, ConnectionAutomatonImpl
public interface ConnectionComponent<CON> extends ConnectionOpenable<CON>, Closable
ConnectionComponent
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
ConnectionOpenable.open(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.Modifier and Type | Interface | Description |
---|---|---|
static interface |
ConnectionComponent.ConnectionAutomaton<CON> |
A system implementing the
ConnectionComponent.ConnectionAutomaton interface supports
managing ConnectionComponent 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. |
static interface |
ConnectionComponent.ConnectionComponentBuilder<CON,B extends ConnectionComponent.ConnectionComponentBuilder<CON,B>> |
Similar to the
ConnectionComponent with additional according
builder methods. |
Closable.CloseAutomaton, Closable.CloseBuilder<B extends Closable.CloseBuilder<B>>
ConnectionOpenable.ConnectionOpenAutomaton<CON>, ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
close, closeIn, closeQuietly, closeUnchecked
open, openUnchecked
Copyright © 2021. All rights reserved.