public class NucleusConnectionImpl extends Object implements NucleusConnection
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.
|
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 © 2019. All rights reserved.