Uses of Interface
com.ocient.transport.TransportResult
Packages that use TransportResult
-
Uses of TransportResult in com.ocient.jdbc
Methods in com.ocient.jdbc that return types with arguments of type TransportResultModifier and TypeMethodDescriptionprotected com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<io.netty.buffer.ByteBuf>>>XGConnection.stream(com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<ClientWireProtocol.Request>> requests, int queueDepth) Exposes a streaming interface that allows the consumer to apply backpressure. -
Uses of TransportResult in com.ocient.transport
Classes in com.ocient.transport that implement TransportResultModifier and TypeClassDescriptionstatic classstatic classFields in com.ocient.transport declared as TransportResultModifier and TypeFieldDescriptionstatic final TransportResult<?>TransportResult.VOID_TRANSPORT_RESULTFields in com.ocient.transport with type parameters of type TransportResultModifier and TypeFieldDescriptionstatic final CompletionStage<? extends TransportResult<?>>TransportResult.VOID_TRANSPORT_RESULT_FUTUREMethods in com.ocient.transport that return TransportResultModifier and TypeMethodDescriptionstatic <T> TransportResult<T>TransportResult.fail(TransportException e) Creates a new instance ofTransportResultthat represents a failed I/O operation.static <T> TransportResult<T>TransportResult.failOrMarshal(Throwable throwable) Returns a new Result object that represents a failed operation with the givenIOException.static <T> TransportResult<T>Creates a new instance ofTransportResultthat represents a failed send operation.static <T> TransportResult<T>Creates a new instance ofTransportResultthat represents a failed send operation.default <U> TransportResult<U>TransportResult.flatMapSuccess(Function<? super T, ? extends TransportResult<U>> fn) Maps the success value of this TransportResult to theTransportResulttype returned from the given function.default <U> TransportResult<U>TransportResult.mapSuccess(Function<? super T, ? extends U> fn) static <T> TransportResult<T>TransportResult.success(T item) Creates a new instance ofTransportResultthat represents a successful I/O operation.static TransportResult<Void>TransportResult.voidResult()Returns anTransportResultthat represents a successful execution of a I/O operation that does not produce a result.Methods in com.ocient.transport that return types with arguments of type TransportResultModifier and TypeMethodDescriptionJavaNetOcientWireV1Transport.Factory.connect(String host, int port, XGConnection.Tls tls, int connectTimeout) NettyOcientWireV1Transport.Factory.connect(String host, int port, XGConnection.Tls tls, int connectTimeout) SimplexTransportFactory.connect(String host, int port, XGConnection.Tls tls, int connectTimeout) Connects to a remote host using the specified transport and configuration.static <T> CompletionStage<TransportResult<T>>TransportResult.failAsync(TransportException e) Creates a new completed stage that represents a failed execution of an I/O operation.static <T> CompletionStage<TransportResult<T>>TransportResult.failOrMarshalAsync(Throwable throwable) Returns a new completed staged that represents a failed operation with the givenIOException.static <T> CompletionStage<TransportResult<T>>TransportResult.failRecvAsync(TransportException e) Creates a new completed stage that represents a failed execution of an I/O operation.static <T> CompletionStage<TransportResult<T>>TransportResult.failSendAsync(TransportException e) Creates a new completed stage that represents a failed execution of an I/O operation.default <U> CompletionStage<TransportResult<U>>TransportResult.mapSuccessAsync(Function<? super T, ? extends CompletionStage<TransportResult<U>>> fn) Maps the success value of this Result to a new completed stage of a differentTransportResulttype by applying the given function.CompletionStage<TransportResult<io.netty.buffer.ByteBuf>>JavaNetOcientWireV1Transport.sendAndReceive(io.netty.buffer.ByteBuf request, SimplexTransport.Ctx ctx) CompletionStage<TransportResult<io.netty.buffer.ByteBuf>>NettyOcientWireV1Transport.sendAndReceive(io.netty.buffer.ByteBuf request, SimplexTransport.Ctx ctx) SimplexTransport.sendAndReceive(TREQUEST request, SimplexTransport.Ctx ctx) Sends aSimplexTransportto the server and returns aCompletionStagethat completes with theSimplexTransportfrom the server.JavaNetOcientWireV1Transport.sendNoReceive(io.netty.buffer.ByteBuf request, SimplexTransport.Ctx ctx) NettyOcientWireV1Transport.sendNoReceive(io.netty.buffer.ByteBuf request, SimplexTransport.Ctx ctx) SimplexTransport.sendNoReceive(TREQUEST request, SimplexTransport.Ctx ctx) SendsSimplexTransportto the server.com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<io.netty.buffer.ByteBuf>>>NettyOcientWireV1Transport.stream(com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<io.netty.buffer.ByteBuf>>> requests, int queueDepth) default com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<TRESPONSE>>>SimplexTransport.stream(com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<TREQUEST>>> requests, int maxQueueDepth) Accepts a stream of requests and returns the result response stream.static <T> CompletionStage<TransportResult<T>>TransportResult.successAsync(T item) Creates a new completed stage that represents a successful execution of an I/O operation.static CompletionStage<TransportResult<Void>>TransportResult.voidFuture()Returns aCompletionStageinstance that completes successfully with aCompletableFutures.SQLResultthat represents a successful execution of a I/O operation that does not produce a result.Method parameters in com.ocient.transport with type arguments of type TransportResultModifier and TypeMethodDescriptiondefault <U> TransportResult<U>TransportResult.flatMapSuccess(Function<? super T, ? extends TransportResult<U>> fn) Maps the success value of this TransportResult to theTransportResulttype returned from the given function.default <U> CompletionStage<TransportResult<U>>TransportResult.mapSuccessAsync(Function<? super T, ? extends CompletionStage<TransportResult<U>>> fn) Maps the success value of this Result to a new completed stage of a differentTransportResulttype by applying the given function.com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<io.netty.buffer.ByteBuf>>>NettyOcientWireV1Transport.stream(com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<io.netty.buffer.ByteBuf>>> requests, int queueDepth) default com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<TRESPONSE>>>SimplexTransport.stream(com.ibm.asyncutil.iteration.AsyncIterator<SimplexTransport.StreamCtx<TransportResult<TREQUEST>>> requests, int maxQueueDepth) Accepts a stream of requests and returns the result response stream. -
Uses of TransportResult in com.ocient.util
Methods in com.ocient.util that return TransportResultModifier and TypeMethodDescriptionstatic <T> TransportResult<T>CompletableFutures.blockingGetTransportResult(CompletionStage<TransportResult<T>> stage) Blocks until the specifiedCompletionStagecompletes and returns its result as anTransportResultinstance.Method parameters in com.ocient.util with type arguments of type TransportResultModifier and TypeMethodDescriptionstatic <T> TransportResult<T>CompletableFutures.blockingGetTransportResult(CompletionStage<TransportResult<T>> stage) Blocks until the specifiedCompletionStagecompletes and returns its result as anTransportResultinstance.