public abstract class AbstractAPIOperation extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAPIOperation.ResultBuffer<T,R> |
Modifier and Type | Field and Description |
---|---|
static ConnectionFailedException |
FAILED_EXCEPTION |
Constructor and Description |
---|
AbstractAPIOperation(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 |
---|---|
protected <T> T |
asyncTimeout(org.forgerock.util.promise.Promise<T,RuntimeException> promise) |
ConnectorKey |
getConnectorKey() |
protected org.forgerock.util.Function<RemoteOperationContext,com.google.protobuf.ByteString,RuntimeException> |
getFacadeKeyFunction() |
protected RequestDistributor<WebSocketConnectionGroup,WebSocketConnectionHolder,RemoteOperationContext> |
getRemoteConnection() |
protected long |
getTimeout() |
protected <V,M extends com.google.protobuf.MessageLite,R extends AbstractRemoteOperationRequestFactory.AbstractRemoteOperationRequest<V,M>> |
submitRequest(AbstractRemoteOperationRequestFactory<V,R> requestFactory) |
public static final ConnectionFailedException FAILED_EXCEPTION
public AbstractAPIOperation(RequestDistributor<WebSocketConnectionGroup,WebSocketConnectionHolder,RemoteOperationContext> remoteConnection, ConnectorKey connectorKey, org.forgerock.util.Function<RemoteOperationContext,com.google.protobuf.ByteString,RuntimeException> facadeKeyFunction, long timeout)
public ConnectorKey getConnectorKey()
protected long getTimeout()
protected RequestDistributor<WebSocketConnectionGroup,WebSocketConnectionHolder,RemoteOperationContext> getRemoteConnection()
protected org.forgerock.util.Function<RemoteOperationContext,com.google.protobuf.ByteString,RuntimeException> getFacadeKeyFunction()
protected <V,M extends com.google.protobuf.MessageLite,R extends AbstractRemoteOperationRequestFactory.AbstractRemoteOperationRequest<V,M>> org.forgerock.util.promise.Promise<V,RuntimeException> submitRequest(AbstractRemoteOperationRequestFactory<V,R> requestFactory)
protected <T> T asyncTimeout(org.forgerock.util.promise.Promise<T,RuntimeException> promise)
Copyright © 2018–2025. All rights reserved.