- All Known Subinterfaces:
AdapterObserverPrx
,AdminPrx
,AdminSessionPrx
,ApplicationObserverPrx
,FileIteratorPrx
,FileParserPrx
,FinderPrx
,IdentitySetPrx
,LocatorFinderPrx
,LocatorPrx
,LocatorPrx
,LocatorRegistryPrx
,LoggerAdminPrx
,MetricsAdminPrx
,NodeObserverPrx
,ObjectObserverPrx
,PermissionsVerifierPrx
,ProcessPrx
,PropertiesAdminPrx
,QueryPrx
,RegistryObserverPrx
,RegistryPrx
,RemoteLoggerPrx
,RouterFinderPrx
,RouterPrx
,RouterPrx
,ServiceManagerPrx
,ServiceObserverPrx
,SessionControlPrx
,SessionManagerPrx
,SessionPrx
,SessionPrx
,SSLPermissionsVerifierPrx
,SSLSessionManagerPrx
,StringSetPrx
,TopicManagerPrx
,TopicPrx
,UserAccountMapperPrx
public interface ObjectPrx
Base interface of all object proxies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The type ID of the target's interface: "::Ice::Object".A special empty context that is indistinguishable from the absence of a context parameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectPrx
checkedCast
(ObjectPrx obj) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrx
checkedCast
(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrx
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrx
checkedCast
(ObjectPrx obj, Map<String, String> context) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrx
createProxy
(Communicator communicator, String proxyString) Creates a new proxy that implementsObjectPrx
.boolean
Determines whether this proxy equals the passed object.ice_adapterId
(String newAdapterId) Creates a new proxy that is identical to this proxy, except for the adapter ID.Creates a new proxy that is identical to this proxy, but uses batch datagram invocations.Creates a new proxy that is identical to this proxy, but uses batch oneway invocations.ice_collocationOptimized
(boolean b) Returns a proxy that is identical to this proxy, except for collocation optimization.ice_compress
(boolean co) Returns a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.ice_connectionCached
(boolean newCache) Returns a proxy that is identical to this proxy, except for connection caching.ice_connectionId
(String connectionId) Returns a proxy that is identical to this proxy, except for its connection ID.ice_context
(Map<String, String> newContext) Creates a new proxy that is identical to this proxy, except for the per-proxy context.Creates a new proxy that is identical to this proxy, but uses datagram invocations.Returns a proxy that is identical to this proxy, except for the encoding used to marshal parameters.ice_endpoints
(Endpoint[] newEndpoints) Creates a new proxy that is identical to this proxy, except for the endpoints.Returns a proxy that is identical to this proxy, except for the endpoint selection policy.default Executor
Gets an executor object that uses the Ice thread pool.Creates a new proxy that is identical to this proxy, except for the facet.ice_fixed
(Connection connection) Creates a new proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.void
Flushes any pending batched requests for this proxy.Flushes any pending batched requests for this proxy asynchronously.Gets the adapter ID for this proxy.Gets the cachedConnection
for this proxy.Gets the communicator that created this proxy.Gets the compression override setting of this proxy.Gets the connection for this proxy.Gets the connection for this proxy asynchronously.Gets the connection id of this proxy.Gets the per-proxy context for this proxy.Gets the encoding version used to marshal request parameters.Endpoint[]
Gets the endpoints used by this proxy.Gets the endpoint selection policy for this proxy (randomly or ordered).Gets the facet for this proxy.Gets the identity embedded in this proxy.Gets the invocation timeout of this proxy.Gets the locator for this proxy.Gets the locator cache timeout of this proxy.Gets the router for this proxy.ice_id()
Gets the Slice type ID of the most-derived interface supported by the target object of this proxy.Gets the Slice type ID of the most-derived interface supported by the target object of this proxy.Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.ice_idAsync
(Map<String, String> context) Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.ice_identity
(Identity newIdentity) Creates a new proxy that is identical to this proxy, except for the identity.String[]
ice_ids()
Gets the Slice type IDs of the interfaces supported by the target object of this proxy.String[]
Gets the Slice type IDs of the interfaces supported by the target object of this proxy.Returns the Slice type IDs of the interfaces supported by the target object of this proxy.ice_idsAsync
(Map<String, String> context) Returns the Slice type IDs of the interfaces supported by the target object of this proxy.ice_invocationTimeout
(int newTimeout) Returns a proxy that is identical to this proxy, except for the invocation timeout.ice_invocationTimeout
(Duration newTimeout) Returns a proxy that is identical to this proxy, except for the invocation timeout.ice_invoke
(String operation, OperationMode mode, byte[] inParams) Invokes an operation dynamically.ice_invoke
(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation dynamically.ice_invokeAsync
(String operation, OperationMode mode, byte[] inParams) Invokes an operation asynchronously.ice_invokeAsync
(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation asynchronously.boolean
Tests whether this object supports a specific Slice interface.boolean
Tests whether this object supports a specific Slice interface.ice_isAAsync
(String id) Tests whether this object supports a specific Slice interface.ice_isAAsync
(String id, Map<String, String> context) Tests whether this object supports a specific Slice interface.boolean
Determines whether this proxy uses batch datagram invocations.boolean
Determines whether this proxy uses batch oneway invocations.boolean
Determines whether this proxy uses collocation optimization.boolean
Determines whether this proxy caches connections.boolean
Determines whether this proxy uses datagram invocations.boolean
Determines whether this proxy is a fixed proxy.boolean
Determines whether this proxy uses oneway invocations.boolean
Determines whether this proxy uses twoway invocations.ice_locator
(LocatorPrx locator) Returns a proxy that is identical to this proxy, except for the locator.ice_locatorCacheTimeout
(int newTimeout) Creates a new proxy that is identical to this proxy, except for the locator cache timeout.ice_locatorCacheTimeout
(Duration newTimeout) Returns a proxy that is identical to this proxy, except for the locator cache timeout.Creates a new proxy that is identical to this proxy, but uses oneway invocations.void
ice_ping()
Tests whether the target object of this proxy can be reached.void
Tests whether the target object of this proxy can be reached.Tests whether the target object of this proxy can be reached.ice_pingAsync
(Map<String, String> context) Tests whether the target object of this proxy can be reached.ice_router
(RouterPrx router) Returns a proxy that is identical to this proxy, except for the router.static String
Gets the Slice type ID associated with this type.Creates a new proxy that is identical to this proxy, but uses twoway invocations.static ObjectPrx
read
(InputStream istr) Reads a proxy from the stream.static ObjectPrx
uncheckedCast
(ObjectPrx obj) Creates a new proxy from an existing proxy.static ObjectPrx
uncheckedCast
(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy.static void
write
(OutputStream ostr, ObjectPrx v) Writes a proxy to the stream.
-
Field Details
-
ice_staticId
The type ID of the target's interface: "::Ice::Object".- See Also:
-
noExplicitContext
A special empty context that is indistinguishable from the absence of a context parameter. For example,prx.op(noExplicitContext)
is the same asprx.op()
and does not override the current implicit context (if any).
-
-
Method Details
-
ice_getCommunicator
Communicator ice_getCommunicator()Gets the communicator that created this proxy.- Returns:
- The communicator that created this proxy.
-
ice_isA
Tests whether this object supports a specific Slice interface.- Parameters:
id
- The type ID of the Slice interface to test against.- Returns:
true
if the target object has the interface specified byid
or derives from the interface specified byid
.
-
ice_isA
Tests whether this object supports a specific Slice interface.- Parameters:
id
- The type ID of the Slice interface to test against.context
- The context map for the invocation.- Returns:
true
if the target object has the interface specified byid
or derives from the interface specified byid
.
-
ice_isAAsync
Tests whether this object supports a specific Slice interface.- Parameters:
id
- The type ID of the Slice interface to test against.- Returns:
- A future for the completion of the request.
-
ice_isAAsync
Tests whether this object supports a specific Slice interface.- Parameters:
id
- The type ID of the Slice interface to test against.context
- The context map for the invocation.- Returns:
- A future for the completion of the request.
-
ice_ping
void ice_ping()Tests whether the target object of this proxy can be reached. -
ice_ping
Tests whether the target object of this proxy can be reached.- Parameters:
context
- The context map for the invocation.
-
ice_pingAsync
CompletableFuture<Void> ice_pingAsync()Tests whether the target object of this proxy can be reached.- Returns:
- A future for the completion of the request.
-
ice_pingAsync
Tests whether the target object of this proxy can be reached.- Parameters:
context
- The context map for the invocation.- Returns:
- A future for the completion of the request.
-
ice_ids
String[] ice_ids()Gets the Slice type IDs of the interfaces supported by the target object of this proxy.- Returns:
- The Slice type IDs of the interfaces supported by the target object, in alphabetical order.
-
ice_ids
Gets the Slice type IDs of the interfaces supported by the target object of this proxy.- Parameters:
context
- The context map for the invocation.- Returns:
- The Slice type IDs of the interfaces supported by the target object, in alphabetical order.
-
ice_idsAsync
CompletableFuture<String[]> ice_idsAsync()Returns the Slice type IDs of the interfaces supported by the target object of this proxy.- Returns:
- A future for the completion of the request.
-
ice_idsAsync
Returns the Slice type IDs of the interfaces supported by the target object of this proxy.- Parameters:
context
- The context map for the invocation.- Returns:
- A future for the completion of the request.
-
ice_id
String ice_id()Gets the Slice type ID of the most-derived interface supported by the target object of this proxy.- Returns:
- The Slice type ID of the most-derived interface.
-
ice_id
Gets the Slice type ID of the most-derived interface supported by the target object of this proxy.- Parameters:
context
- The context map for the invocation.- Returns:
- The Slice type ID of the most-derived interface.
-
ice_idAsync
CompletableFuture<String> ice_idAsync()Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.- Returns:
- A future for the completion of the request.
-
ice_idAsync
Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.- Parameters:
context
- The context map for the invocation.- Returns:
- A future for the completion of the request.
-
ice_invoke
Invokes an operation dynamically.- Parameters:
operation
- The name of the operation to invoke.mode
- The operation mode (normal or idempotent).inParams
- The encoded in-parameters for the operation.- Returns:
- The results of the invocation.
- See Also:
-
ice_invoke
Object.Ice_invokeResult ice_invoke(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation dynamically.- Parameters:
operation
- The name of the operation to invoke.mode
- The operation mode (normal or idempotent).inParams
- The encoded in-parameters for the operation.context
- The context map for the invocation.- Returns:
- The results of the invocation.
- See Also:
-
ice_invokeAsync
CompletableFuture<Object.Ice_invokeResult> ice_invokeAsync(String operation, OperationMode mode, byte[] inParams) Invokes an operation asynchronously.- Parameters:
operation
- The name of the operation to invoke.mode
- The operation mode (normal or idempotent).inParams
- The encoded in-parameters for the operation.- Returns:
- A future for the completion of the request.
- See Also:
-
ice_invokeAsync
CompletableFuture<Object.Ice_invokeResult> ice_invokeAsync(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation asynchronously.- Parameters:
operation
- The name of the operation to invoke.mode
- The operation mode (normal or idempotent).inParams
- The encoded in-parameters for the operation.context
- The context map for the invocation.- Returns:
- A future for the completion of the request.
- See Also:
-
ice_getIdentity
Identity ice_getIdentity()Gets the identity embedded in this proxy.- Returns:
- The identity of the target object.
-
ice_identity
Creates a new proxy that is identical to this proxy, except for the identity.- Parameters:
newIdentity
- The identity for the new proxy.- Returns:
- A proxy with the new identity.
-
ice_getContext
Gets the per-proxy context for this proxy.- Returns:
- The per-proxy context. If the proxy does not have a per-proxy (implicit) context, the
return value is
null
.
-
ice_context
Creates a new proxy that is identical to this proxy, except for the per-proxy context.- Parameters:
newContext
- The context for the new proxy.- Returns:
- A proxy with the new per-proxy context.
-
ice_getFacet
String ice_getFacet()Gets the facet for this proxy.- Returns:
- The facet for this proxy. If the proxy uses the default facet, the return value is the empty string.
-
ice_facet
Creates a new proxy that is identical to this proxy, except for the facet.- Parameters:
newFacet
- The facet for the new proxy.- Returns:
- A proxy with the new facet.
-
ice_getAdapterId
String ice_getAdapterId()Gets the adapter ID for this proxy.- Returns:
- The adapter ID. If the proxy does not have an adapter ID, the return value is the empty string.
-
ice_adapterId
Creates a new proxy that is identical to this proxy, except for the adapter ID.- Parameters:
newAdapterId
- The adapter ID for the new proxy.- Returns:
- A proxy with the new adapter ID.
-
ice_getEndpoints
Endpoint[] ice_getEndpoints()Gets the endpoints used by this proxy.- Returns:
- The endpoints used by this proxy.
- See Also:
-
ice_endpoints
Creates a new proxy that is identical to this proxy, except for the endpoints.- Parameters:
newEndpoints
- The endpoints for the new proxy.- Returns:
- A proxy with the new endpoints.
-
ice_getLocatorCacheTimeout
Duration ice_getLocatorCacheTimeout()Gets the locator cache timeout of this proxy.- Returns:
- The locator cache timeout value.
- See Also:
-
ice_getInvocationTimeout
Duration ice_getInvocationTimeout()Gets the invocation timeout of this proxy.- Returns:
- The invocation timeout value.
-
ice_getConnectionId
String ice_getConnectionId()Gets the connection id of this proxy.- Returns:
- The connection id.
-
ice_fixed
Creates a new proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.- Parameters:
connection
- The fixed proxy connection.- Returns:
- A fixed proxy bound to the given connection.
-
ice_isFixed
boolean ice_isFixed()Determines whether this proxy is a fixed proxy.- Returns:
true
if this is a fixed proxy,false
otherwise.
-
ice_locatorCacheTimeout
Creates a new proxy that is identical to this proxy, except for the locator cache timeout.- Parameters:
newTimeout
- The new locator cache timeout (in seconds).- Returns:
- A proxy with the new timeout.
- See Also:
-
ice_locatorCacheTimeout
Returns a proxy that is identical to this proxy, except for the locator cache timeout.- Parameters:
newTimeout
- The new locator cache timeout.- Returns:
- The proxy with the new timeout.
- See Also:
-
ice_invocationTimeout
Returns a proxy that is identical to this proxy, except for the invocation timeout.- Parameters:
newTimeout
- The new invocation timeout (in milliseconds).- Returns:
- The proxy with the new timeout.
-
ice_invocationTimeout
Returns a proxy that is identical to this proxy, except for the invocation timeout.- Parameters:
newTimeout
- The new invocation timeout.- Returns:
- The proxy with the new timeout.
-
ice_isConnectionCached
boolean ice_isConnectionCached()Determines whether this proxy caches connections.- Returns:
true
if this proxy caches connections,false
otherwise.
-
ice_connectionCached
Returns a proxy that is identical to this proxy, except for connection caching.- Parameters:
newCache
-true
if the new proxy should cache connections;false
otherwise.- Returns:
- The proxy with the specified caching policy.
-
ice_getEndpointSelection
EndpointSelectionType ice_getEndpointSelection()Gets the endpoint selection policy for this proxy (randomly or ordered).- Returns:
- The endpoint selection policy.
- See Also:
-
ice_endpointSelection
Returns a proxy that is identical to this proxy, except for the endpoint selection policy.- Parameters:
newType
- The new endpoint selection policy.- Returns:
- The proxy with the specified endpoint selection policy.
- See Also:
-
ice_encodingVersion
Returns a proxy that is identical to this proxy, except for the encoding used to marshal parameters.- Parameters:
e
- The encoding version to use to marshal request parameters.- Returns:
- The proxy with the specified encoding version.
-
ice_getEncodingVersion
EncodingVersion ice_getEncodingVersion()Gets the encoding version used to marshal request parameters.- Returns:
- The encoding version.
-
ice_getRouter
RouterPrx ice_getRouter()Gets the router for this proxy.- Returns:
- The router for the proxy. If no router is configured for the proxy, the return value
is
null
.
-
ice_router
Returns a proxy that is identical to this proxy, except for the router.- Parameters:
router
- The router for the new proxy.- Returns:
- The proxy with the specified router.
-
ice_getLocator
LocatorPrx ice_getLocator()Gets the locator for this proxy.- Returns:
- The locator for this proxy. If no locator is configured, the return value is
null
.
-
ice_locator
Returns a proxy that is identical to this proxy, except for the locator.- Parameters:
locator
- The locator for the new proxy.- Returns:
- The proxy with the specified locator.
-
ice_isCollocationOptimized
boolean ice_isCollocationOptimized()Determines whether this proxy uses collocation optimization.- Returns:
true
if the proxy uses collocation optimization,false
otherwise.
-
ice_collocationOptimized
Returns a proxy that is identical to this proxy, except for collocation optimization.- Parameters:
b
-true
if the new proxy enables collocation optimization;false
otherwise.- Returns:
- The proxy with the specified collocation optimization.
-
ice_twoway
ObjectPrx ice_twoway()Creates a new proxy that is identical to this proxy, but uses twoway invocations.- Returns:
- A proxy that uses twoway invocations.
-
ice_isTwoway
boolean ice_isTwoway()Determines whether this proxy uses twoway invocations.- Returns:
true
if this proxy uses twoway invocations,false
otherwise.
-
ice_oneway
ObjectPrx ice_oneway()Creates a new proxy that is identical to this proxy, but uses oneway invocations.- Returns:
- A proxy that uses oneway invocations.
-
ice_isOneway
boolean ice_isOneway()Determines whether this proxy uses oneway invocations.- Returns:
true
if this proxy uses oneway invocations,false
otherwise.
-
ice_batchOneway
ObjectPrx ice_batchOneway()Creates a new proxy that is identical to this proxy, but uses batch oneway invocations.- Returns:
- A proxy that uses batch oneway invocations.
-
ice_isBatchOneway
boolean ice_isBatchOneway()Determines whether this proxy uses batch oneway invocations.- Returns:
true
if this proxy uses batch oneway invocations,false
otherwise.
-
ice_datagram
ObjectPrx ice_datagram()Creates a new proxy that is identical to this proxy, but uses datagram invocations.- Returns:
- A proxy that uses datagram invocations.
-
ice_isDatagram
boolean ice_isDatagram()Determines whether this proxy uses datagram invocations.- Returns:
true
if this proxy uses datagram invocations,false
otherwise.
-
ice_batchDatagram
ObjectPrx ice_batchDatagram()Creates a new proxy that is identical to this proxy, but uses batch datagram invocations.- Returns:
- A proxy that uses batch datagram invocations.
-
ice_isBatchDatagram
boolean ice_isBatchDatagram()Determines whether this proxy uses batch datagram invocations.- Returns:
true
if this proxy uses batch datagram invocations,false
otherwise.
-
ice_compress
Returns a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.- Parameters:
co
-true
enables compression for the new proxy;false
disables compression.- Returns:
- A proxy with the specified compression setting.
-
ice_getCompress
Gets the compression override setting of this proxy.- Returns:
- The compression override setting. If no optional value is present, no override is set. Otherwise, true if compression is enabled, false otherwise.
-
ice_connectionId
Returns a proxy that is identical to this proxy, except for its connection ID.- Parameters:
connectionId
- The connection ID for the new proxy. An empty string removes the connection ID.- Returns:
- A proxy with the specified connection ID.
-
ice_getConnection
Connection ice_getConnection()Gets the connection for this proxy. If the proxy does not yet have an established connection, it first attempts to create a connection.- Returns:
- The
Connection
for this proxy. - See Also:
-
ice_executor
Gets an executor object that uses the Ice thread pool.- Returns:
- The Executor object.
-
ice_getConnectionAsync
CompletableFuture<Connection> ice_getConnectionAsync()Gets the connection for this proxy asynchronously. The call does not block.- Returns:
- A future for the completion of the request.
-
ice_getCachedConnection
Connection ice_getCachedConnection()Gets the cachedConnection
for this proxy. If the proxy does not yet have an established connection, it does not attempt to create a connection.- Returns:
- The cached
Connection
for this proxy (null
if the proxy does not have an established connection). - See Also:
-
ice_flushBatchRequests
void ice_flushBatchRequests()Flushes any pending batched requests for this proxy. The call blocks until the flush is complete. -
ice_flushBatchRequestsAsync
CompletableFuture<Void> ice_flushBatchRequestsAsync()Flushes any pending batched requests for this proxy asynchronously. The call does not block.- Returns:
- A future for the completion of the request.
-
equals
Determines whether this proxy equals the passed object. Two proxies are equal if they are equal in all respects, that is, if their object identity, endpoints timeout settings, and so on are all equal. -
ice_staticId
Gets the Slice type ID associated with this type.- Returns:
- The Slice type ID.
-
createProxy
Creates a new proxy that implementsObjectPrx
.- Parameters:
communicator
- The communicator of the new proxy.proxyString
- The string representation of the proxy.- Returns:
- The new proxy.
- Throws:
ParseException
- Thrown whenproxyString
is not a valid proxy string.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj
- The source proxy.- Returns:
- A new proxy or
null
if the target object does not support the specified type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj
- The source proxy.context
- TheContext
map for the invocation.- Returns:
- A new proxy or
null
if the target object does not support the specified type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj
- The source proxy.facet
- The facet for the new proxy.- Returns:
- A new proxy with the specified facet, or
null
if the target facet does not support the specified type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj
- The source proxy.facet
- The facet for the new proxy.context
- TheContext
map for the invocation.- Returns:
- A new proxy with the specified facet, or
null
if the target facet does not support the specified type.
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj
- The source proxy.- Returns:
- A new proxy with the desired type or
null
ifobj
isnull
.
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj
- The source proxy.facet
- The facet for the new proxy.- Returns:
- A new proxy with the desired type or
null
ifobj
isnull
.
-
write
Writes a proxy to the stream.- Parameters:
ostr
- The destination stream.v
- The proxy to write to the stream.
-
read
Reads a proxy from the stream.- Parameters:
istr
- The source stream.- Returns:
- A new proxy or
null
for a null proxy.
-