public interface RhinoServiceConnectionSource
Modifier and Type | Interface and Description |
---|---|
static interface |
RhinoServiceConnectionSource.ConnectionHandle
A handle for the connection.
|
Modifier and Type | Method and Description |
---|---|
RhinoServiceConnectionSource.ConnectionHandle |
getConnection()
Gets a handle to a connection, or
null if this source is unable
to provide a connection. |
int |
getPriority()
Gets the priority for this connection source.
|
RhinoServiceConnectionSource.ConnectionHandle getConnection() throws ServiceException
Gets a handle to a connection, or null
if this source is unable
to provide a connection.
If this source provides a non-null value, you must call
RhinoServiceConnectionSource.ConnectionHandle.release()
when you're done with it.
ServiceException
- if there is a problem getting or establishing a
connectionint getPriority()
Gets the priority for this connection source.
Sources with a lower number will be checked first.