public class GetAsyncApiOpImpl extends AbstractAPIOperation implements GetAsyncApiOp
AbstractAPIOperation.ResultBuffer<T,R>
FAILED_EXCEPTION
NO_TIMEOUT
Constructor and Description |
---|
GetAsyncApiOpImpl(RequestDistributor<WebSocketConnectionGroup,WebSocketConnectionHolder,RemoteOperationContext> remoteConnection,
ConnectorKey connectorKey,
org.forgerock.util.Function<RemoteOperationContext,com.google.protobuf.ByteString,RuntimeException> facadeKeyFunction,
long timeout) |
Modifier and Type | Method and Description |
---|---|
static AbstractLocalOperationProcessor<ConnectorObject,OperationMessages.GetOpRequest> |
createProcessor(long requestId,
WebSocketConnectionHolder socket,
OperationMessages.GetOpRequest message) |
ConnectorObject |
getObject(ObjectClass objectClass,
Uid uid,
OperationOptions options)
Get a particular
ConnectorObject based on the Uid . |
org.forgerock.util.promise.Promise<ConnectorObject,RuntimeException> |
getObjectAsync(ObjectClass objectClass,
Uid uid,
OperationOptions options)
Get a particular
ConnectorObject
based on the Uid . |
asyncTimeout, getConnectorKey, getFacadeKeyFunction, getRemoteConnection, getTimeout, submitRequest
public GetAsyncApiOpImpl(RequestDistributor<WebSocketConnectionGroup,WebSocketConnectionHolder,RemoteOperationContext> remoteConnection, ConnectorKey connectorKey, org.forgerock.util.Function<RemoteOperationContext,com.google.protobuf.ByteString,RuntimeException> facadeKeyFunction, long timeout)
public ConnectorObject getObject(ObjectClass objectClass, Uid uid, OperationOptions options)
GetApiOp
ConnectorObject
based on the Uid
.getObject
in interface GetApiOp
objectClass
- type of object to get.uid
- the unique id of the object that to get.options
- additional options that impact the way this operation is run.
May be null.ConnectorObject
based on the Uid
provided or
null
if no such object could be found.public org.forgerock.util.promise.Promise<ConnectorObject,RuntimeException> getObjectAsync(ObjectClass objectClass, Uid uid, OperationOptions options)
GetAsyncApiOp
ConnectorObject
based on the Uid
.getObjectAsync
in interface GetAsyncApiOp
objectClass
- type of object to get.uid
- the unique id of the object that to get.options
- additional options that impact the way this operation is run.
May be null.ConnectorObject
based on the
Uid
provided or null
if no such object could be found.public static AbstractLocalOperationProcessor<ConnectorObject,OperationMessages.GetOpRequest> createProcessor(long requestId, WebSocketConnectionHolder socket, OperationMessages.GetOpRequest message)
Copyright © 2018–2025. All rights reserved.