Uses of Class
java.lang.Void
Packages that useVoid
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
HTTP Client and WebSocket APIs
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
Utility classes commonly useful in concurrent programming.
Provides the open data types and Open MBean descriptor classes.
Uses ofVoid injava.lang
Uses ofVoid injava.net.http
Methods injava.net.http that return types with arguments of typeVoidModifier and TypeMethodDescriptionstaticHttpResponse.BodyHandler<Void>HttpResponse.BodyHandlers.discarding()Returns a response body handler that discards the response body.staticHttpResponse.BodySubscriber<Void>HttpResponse.BodySubscribers.discarding()Returns a response subscriber which discards the response body.staticHttpResponse.BodyHandler<Void>HttpResponse.BodyHandlers.fromLineSubscriber(Flow.Subscriber<? superString> subscriber) Returns a response body handler that returns aBodySubscriber<Void>obtained fromBodySubscribers.fromLineSubscriber(subscriber, s -> null, charset, null), with the givensubscriber.staticHttpResponse.BodySubscriber<Void>HttpResponse.BodySubscribers.fromLineSubscriber(Flow.Subscriber<? superString> subscriber) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber, line by line.staticHttpResponse.BodyHandler<Void>HttpResponse.BodyHandlers.fromSubscriber(Flow.Subscriber<? superList<ByteBuffer>> subscriber) Returns a response body handler that returns aBodySubscriber<Void>obtained fromHttpResponse.BodySubscribers.fromSubscriber(Subscriber), with the givensubscriber.staticHttpResponse.BodySubscriber<Void>HttpResponse.BodySubscribers.fromSubscriber(Flow.Subscriber<? superList<ByteBuffer>> subscriber) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber.staticHttpResponse.BodyHandler<Void>HttpResponse.BodyHandlers.ofByteArrayConsumer(Consumer<Optional<byte[]>> consumer) Returns aBodyHandler<Void>that returns aBodySubscriber<Void>obtained fromBodySubscribers.ofByteArrayConsumer(Consumer).staticHttpResponse.BodySubscriber<Void>HttpResponse.BodySubscribers.ofByteArrayConsumer(Consumer<Optional<byte[]>> consumer) Returns aBodySubscriberwhich provides the incoming body data to the provided Consumer ofOptional<byte[]>.Uses ofVoid injava.nio.channels
Methods injava.nio.channels that return types with arguments of typeVoidModifier and TypeMethodDescriptionAsynchronousSocketChannel.connect(SocketAddress remote) Connects this channel.Method parameters injava.nio.channels with type arguments of typeVoidModifier and TypeMethodDescriptionabstract <A> voidAsynchronousSocketChannel.connect(SocketAddress remote, A attachment,CompletionHandler<Void, ? super A> handler) Connects this channel.Uses ofVoid injava.util.concurrent
Methods injava.util.concurrent that returnVoidMethods injava.util.concurrent that return types with arguments of typeVoidModifier and TypeMethodDescriptionCompletableFuture.acceptEither(CompletionStage<? extendsT> other,Consumer<? superT> action) CompletionStage.acceptEither(CompletionStage<? extendsT> other,Consumer<? superT> action) Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed with the corresponding result as argument to the supplied action.CompletableFuture.acceptEitherAsync(CompletionStage<? extendsT> other,Consumer<? superT> action) CompletableFuture.acceptEitherAsync(CompletionStage<? extendsT> other,Consumer<? superT> action,Executor executor) CompletionStage.acceptEitherAsync(CompletionStage<? extendsT> other,Consumer<? superT> action) Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using this stage's default asynchronous execution facility, with the corresponding result as argument to the supplied action.CompletionStage.acceptEitherAsync(CompletionStage<? extendsT> other,Consumer<? superT> action,Executor executor) Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using the supplied executor, with the corresponding result as argument to the supplied action.staticCompletableFuture<Void>CompletableFuture.allOf(CompletableFuture<?>... cfs) Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete.Processes all published items using the given Consumer function.CompletableFuture.runAfterBoth(CompletionStage<?> other,Runnable action) CompletionStage.runAfterBoth(CompletionStage<?> other,Runnable action) Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action.CompletableFuture.runAfterBothAsync(CompletionStage<?> other,Runnable action) CompletableFuture.runAfterBothAsync(CompletionStage<?> other,Runnable action,Executor executor) CompletionStage.runAfterBothAsync(CompletionStage<?> other,Runnable action) Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action using this stage's default asynchronous execution facility.CompletionStage.runAfterBothAsync(CompletionStage<?> other,Runnable action,Executor executor) Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action using the supplied executor.CompletableFuture.runAfterEither(CompletionStage<?> other,Runnable action) CompletionStage.runAfterEither(CompletionStage<?> other,Runnable action) Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action.CompletableFuture.runAfterEitherAsync(CompletionStage<?> other,Runnable action) CompletableFuture.runAfterEitherAsync(CompletionStage<?> other,Runnable action,Executor executor) CompletionStage.runAfterEitherAsync(CompletionStage<?> other,Runnable action) Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using this stage's default asynchronous execution facility.CompletionStage.runAfterEitherAsync(CompletionStage<?> other,Runnable action,Executor executor) Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using the supplied executor.staticCompletableFuture<Void>Returns a new CompletableFuture that is asynchronously completed by a task running in theForkJoinPool.commonPool()after it runs the given action.staticCompletableFuture<Void>Returns a new CompletableFuture that is asynchronously completed by a task running in the given executor after it runs the given action.CompletableFuture.thenAccept(Consumer<? superT> action) CompletionStage.thenAccept(Consumer<? superT> action) Returns a new CompletionStage that, when this stage completes normally, is executed with this stage's result as the argument to the supplied action.CompletableFuture.thenAcceptAsync(Consumer<? superT> action) CompletableFuture.thenAcceptAsync(Consumer<? superT> action,Executor executor) CompletionStage.thenAcceptAsync(Consumer<? superT> action) Returns a new CompletionStage that, when this stage completes normally, is executed using this stage's default asynchronous execution facility, with this stage's result as the argument to the supplied action.CompletionStage.thenAcceptAsync(Consumer<? superT> action,Executor executor) Returns a new CompletionStage that, when this stage completes normally, is executed using the supplied Executor, with this stage's result as the argument to the supplied action.<U> CompletableFuture<Void>CompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action) <U> CompletionStage<Void>CompletionStage.thenAcceptBoth(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action) Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed with the two results as arguments to the supplied action.<U> CompletableFuture<Void>CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action) <U> CompletableFuture<Void>CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action,Executor executor) <U> CompletionStage<Void>CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action) Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using this stage's default asynchronous execution facility, with the two results as arguments to the supplied action.<U> CompletionStage<Void>CompletionStage.thenAcceptBothAsync(CompletionStage<? extends U> other,BiConsumer<? superT, ? super U> action,Executor executor) Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied action.Returns a new CompletionStage that, when this stage completes normally, executes the given action.CompletableFuture.thenRunAsync(Runnable action) CompletableFuture.thenRunAsync(Runnable action,Executor executor) CompletionStage.thenRunAsync(Runnable action) Returns a new CompletionStage that, when this stage completes normally, executes the given action using this stage's default asynchronous execution facility.CompletionStage.thenRunAsync(Runnable action,Executor executor) Returns a new CompletionStage that, when this stage completes normally, executes the given action using the supplied Executor.Methods injava.util.concurrent with parameters of typeVoidModifier and TypeMethodDescriptionprotected final voidRecursiveAction.setRawResult(Void mustBeNull) Requires null completion value.Uses ofVoid injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeVoidModifier and TypeFieldDescriptionstatic finalSimpleType<Void>SimpleType.VOIDTheSimpleTypeinstance describing values whose Java class name isjava.lang.Void.