Package com.opencloud.rem.service.rhino
Interface RhinoServiceConnectionSource
-
public interface RhinoServiceConnectionSource
A source for getting or establishing a Rhino connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RhinoServiceConnectionSource.ConnectionHandle
A handle for the connection.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RhinoServiceConnectionSource.ConnectionHandle
getConnection()
Gets a handle to a connection, ornull
if this source is unable to provide a connection.int
getPriority()
Gets the priority for this connection source.
-
-
-
Method Detail
-
getConnection
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.- Returns:
- a handle to a connection
- Throws:
ServiceException
- if there is a problem getting or establishing a connection
-
getPriority
int getPriority()
Gets the priority for this connection source.
Sources with a lower number will be checked first.
- Returns:
- the priority of this source
-
-