...
API | Method(s) | Notes | |
---|---|---|---|
java.lang.Thread | sleep, join | join to wait for a virtual thread to terminate | |
java.util.concurrent | All blocking operations | ||
java.net.Socket | connect, read, write | Socket constructors with a host name parameter may need to do a lookup with InetAddress, see below | |
java.net.ServerSocket | accept | ||
java.net.DatagramSocket/MulticastSocket | receive | connect, disconnect and send do not block | |
java.nio.channels.SocketChannel | connect, read, write | socket adaptor connect, read, and write also okay | |
java.nio.channels.ServerSocketChannel | accept | socket adaptor accept also okay | |
java.nio.channels.DatagramChannel | read, receivesocket adaptor receive also okay | connect, disconnect, send, and write do not block | |
java.nio.channels.Pipe.SourceChannel | read | ||
java.nio.channels.Pipe.SinkChannel | write | ||
Console streams (System.in, out, err) | read, write, printf | Linux/macOS only at this time. |
...
Overview
Content Tools
ThemeBuilder