public interface Connection
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
_toString()
Return a description of the connection as human readable text,
suitable for logging or error messages.
|
AsyncResult |
begin_flushBatchRequests()
Flush any pending batch requests for this connection.
|
AsyncResult |
begin_flushBatchRequests(Callback_Connection_flushBatchRequests __cb)
Flush any pending batch requests for this connection.
|
AsyncResult |
begin_flushBatchRequests(Callback __cb)
Flush any pending batch requests for this connection.
|
AsyncResult |
begin_flushBatchRequests(Functional_VoidCallback __responseCb,
Functional_GenericCallback1<Exception> __exceptionCb,
Functional_BoolCallback __sentCb)
Flush any pending batch requests for this connection.
|
void |
close(boolean force)
Close a connection, either gracefully or forcefully.
|
ObjectPrx |
createProxy(Identity id)
Create a special proxy that always uses this connection.
|
void |
end_flushBatchRequests(AsyncResult __result)
Flush any pending batch requests for this connection.
|
void |
flushBatchRequests()
Flush any pending batch requests for this connection.
|
ACM |
getACM()
Get the ACM parameters.
|
ObjectAdapter |
getAdapter()
Get the object adapter that dispatches requests for this
connection.
|
Endpoint |
getEndpoint()
Get the endpoint from which the connection was created.
|
ConnectionInfo |
getInfo()
Returns the connection information.
|
void |
setACM(IntOptional timeout,
Optional<ACMClose> close,
Optional<ACMHeartbeat> heartbeat)
Set the active connection management parameters.
|
void |
setAdapter(ObjectAdapter adapter)
Explicitly set an object adapter that dispatches requests that
are received over this connection.
|
void |
setBufferSize(int rcvSize,
int sndSize)
Set the connectiion buffer receive/send size.
|
void |
setCallback(ConnectionCallback callback)
Set callback on the connection.
|
int |
timeout()
Get the timeout for the connection.
|
java.lang.String |
type()
Return the connection type.
|
static final long serialVersionUID
void close(boolean force)
force - If true, close forcefully. Otherwise the
connection is closed gracefully.ObjectPrx createProxy(Identity id)
id - The identity for which a proxy is to be created.setAdapter(Ice.ObjectAdapter)void setAdapter(ObjectAdapter adapter)
adapter - The object adapter that should be used by this
connection to dispatch requests. The object adapter must be
activated. When the object adapter is deactivated, it is
automatically removed from the connection.createProxy(Ice.Identity),
setAdapter(Ice.ObjectAdapter)ObjectAdapter getAdapter()
setAdapter(Ice.ObjectAdapter)Endpoint getEndpoint()
void flushBatchRequests()
AsyncResult begin_flushBatchRequests()
AsyncResult begin_flushBatchRequests(Callback __cb)
__cb - A generic callback.AsyncResult begin_flushBatchRequests(Callback_Connection_flushBatchRequests __cb)
__cb - A typed callback.AsyncResult begin_flushBatchRequests(Functional_VoidCallback __responseCb, Functional_GenericCallback1<Exception> __exceptionCb, Functional_BoolCallback __sentCb)
__responseCb - The response callback.__exceptionCb - The exception callback.__sentCb - The sent callback.void end_flushBatchRequests(AsyncResult __result)
__result - The asynchronous result object.void setCallback(ConnectionCallback callback)
callback - The connection callback object.void setACM(IntOptional timeout, Optional<ACMClose> close, Optional<ACMHeartbeat> heartbeat)
timeout - The timeout value in seconds.close - The close conditionheartbeat - The hertbeat conditionACM getACM()
java.lang.String type()
int timeout()
java.lang.String _toString()
ConnectionInfo getInfo()
void setBufferSize(int rcvSize,
int sndSize)
rcvSize - The connection receive buffer size.sndSize - The connection send buffer size.