T
- The resource typepublic class ConnectionImpl<T> extends AbstractCloseable implements Connection<T>
Constructor and Description |
---|
ConnectionImpl(T resource,
ConnectionFactory<T> connectionFactory)
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeImpl()
Closes the connection.
|
T |
getResource()
This function returns the resource held by the connection.
|
close
public ConnectionImpl(T resource, ConnectionFactory<T> connectionFactory)
resource
- The resource held by this connectionconnectionFactory
- The owner connection factoryprotected final void closeImpl()
closeImpl
in class AbstractCloseable
public final T getResource()
getResource
in interface Connection<T>
Copyright © 2009–2020 fax4j. All rights reserved.