public class NucleusConnectionImpl extends Object implements NucleusConnection
Modifier and Type | Field and Description |
---|---|
protected static Localiser |
LOCALISER
Localisation utility for output messages
|
Constructor and Description |
---|
NucleusConnectionImpl(Object conn,
Runnable onClose)
Constructor for a datastore connection holder.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Method to close the connection.
|
Object |
getNativeConnection()
Accessor for the native connection for this datastore.
|
boolean |
isAvailable()
Accessor for whether the connection is available.
|
protected static final Localiser LOCALISER
public void close()
close
in interface NucleusConnection
NucleusUserException
- Thrown if the connection is no longer available.public boolean isAvailable()
NucleusConnection
isAvailable
in interface NucleusConnection
public Object getNativeConnection()
getNativeConnection
in interface NucleusConnection
Copyright © 2021. All rights reserved.