APIdia Launch Partner
Top Methods
jdk.internal.net.http.websocket

public Interface Transport

Known Direct Implementers
jdk.internal.net.http.websocket.TransportImpl
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.concurrent.CompletableFuture, java.util.function.BiConsumer, .Supplier

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
request(long n)

public <T> CompletableFuture<T>
sendBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action)

public <T> CompletableFuture<T>
sendClose(int statusCode, String reason, T attachment, BiConsumer<? super T, ? super Throwable> action)

public <T> CompletableFuture<T>
sendPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action)

public <T> CompletableFuture<T>
sendPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action)

public <T> CompletableFuture<T>
sendPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action)

public <T> CompletableFuture<T>
sendText(CharSequence message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action)

Method Detail

acknowledgeReceptionback to summary
public void acknowledgeReception()
closeInputback to summary
public void closeInput() throws IOException
closeOutputback to summary
public void closeOutput() throws IOException
requestback to summary
public void request(long n)
sendBinaryback to summary
public <T> CompletableFuture<T> sendBinary(ByteBuffer message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action)
sendCloseback to summary
public <T> CompletableFuture<T> sendClose(int statusCode, String reason, T attachment, BiConsumer<? super T, ? super Throwable> action)
sendPingback to summary
public <T> CompletableFuture<T> sendPing(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action)
sendPongback to summary
public <T> CompletableFuture<T> sendPong(ByteBuffer message, T attachment, BiConsumer<? super T, ? super Throwable> action)
sendPongback to summary
public <T> CompletableFuture<T> sendPong(Supplier<? extends ByteBuffer> message, T attachment, BiConsumer<? super T, ? super Throwable> action)
sendTextback to summary
public <T> CompletableFuture<T> sendText(CharSequence message, boolean isLast, T attachment, BiConsumer<? super T, ? super Throwable> action)