Schnittstelle GroupCloseable
- Alle Superschnittstellen:
AutoCloseable, Closeable, CloseStateRequestable
- Alle bekannten Unterschnittstellen:
IBackendClient<S>, IBaseEndPoint, IClient, IDataAdapter, IDataAdapter, IDataAdapterAndSchemaReader, IDatabase, IDataReader, IDataWriter, IEndPoint, IEndPoint, IEndPoint, IResettableChangeSaver, IResourcePool<R>, ISchemaAdapter, ISchemaAdapter, ISchemaAdapter, ISchemaReader, ISchemaReader, ISchemaWriter, ISchemaWriter, IServer, IServer, IServer, IServer<S>, ISqlConnection
- Alle bekannten Implementierungsklassen:
AbstractBackendClient, AbstractBaseEndPoint, AbstractClient, AbstractDataAdapter, AbstractDataAdapter, AbstractDataAdapterAndSchemaReader, AbstractEndPoint, AbstractEndPoint, AbstractEndPoint, AbstractFrontendClient, AbstractNetEndPoint, AbstractResourcePool, AbstractSchemaAdapter, AbstractSchemaAdapter, AbstractServer, AbstractServer, AbstractServer, AbstractServer, AbstractSqlConnection, AbstractSqlDataAdapter, AbstractWebClient, AbstractWrapperResource, Database, DataReader, DataReader, DataWriter, DataWriter, LocalEndPoint, LocalEndPoint, LocalEndPoint, LocalServer, LocalServer, LocalServer, LocalServer, MsSqlConnection, MsSqlDataAdapter, MsSqlDataAdapter, MsSqlDataAdapterAndSchemaReader, MsSqlSchemaAdapter, NetEndPoint, NetEndPoint, NodeDataAdapter, NodeDataAdapter, NodeDataAdapterAndSchemaReader, NodeSchemaAdapter, NodeSchemaAdapter, SchemaReader, SchemaReader, SchemaReader, SchemaWriter, SchemaWriter, SchemaWriter, Server, Server, Server, Server, SocketEndPoint, SqlConnectionPool, SqlSchemaAdapter, SqlSchemaAdapter, SslServer, SslServer, SslServer, SslServer, UncloseableSqlConnection, WebClient, WrapperSqlConnection
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungdefault voidclose()Closes the currentCloseable.default voidcreateCloseDependencyTo(GroupCloseable element) Creates a close dependency between the currentGroupCloseableand the given element.default booleanisClosed()voidLets the currentGroupCloseablenote a close.Von Schnittstelle geerbte Methoden CloseStateRequestable
isOpen
-
Methodendetails
-
close
default void close()Closes the currentCloseable.- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleCloseable
-
createCloseDependencyTo
Creates a close dependency between the currentGroupCloseableand the given element. When aGroupCloseableis closed, all elements, the currentGroupCloseablehas a close dependency to, will be closed too and vice versa.- Parameter:
element-- Löst aus:
RuntimeException- if the currentGroupCloseableis already closed.RuntimeException- if the currentGroupCloseablehas already a close dependency to the given element.
-
getStoredCloseController
ICloseController getStoredCloseController()- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
isClosed
default boolean isClosed()- Angegeben von:
isClosedin SchnittstelleCloseStateRequestable- Gibt zurück:
- true if the current
CloseStateRequestableis closed, false otherwise.
-
noteClose
void noteClose()Lets the currentGroupCloseablenote a close.
-