Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractIpModem<I,
O> - Class in swim.io - AbstractIpModem() - Constructor for class swim.io.AbstractIpModem
- AbstractIpService - Class in swim.io
- AbstractIpService() - Constructor for class swim.io.AbstractIpService
- AbstractIpSocket - Class in swim.io
- AbstractIpSocket() - Constructor for class swim.io.AbstractIpSocket
- ACCEPT - Enum constant in enum class swim.io.FlowControl
-
accept enabled; connect, read, and write disabled.
- ACCEPT_CONNECT - Enum constant in enum class swim.io.FlowControl
-
accept and connect enabled; read and write disabled.
- ACCEPT_CONNECT_READ - Enum constant in enum class swim.io.FlowControl
-
accept, connect, and read enabled; write disabled.
- ACCEPT_CONNECT_READ_WRITE - Enum constant in enum class swim.io.FlowControl
-
accept, connect, read, and write enabled.
- ACCEPT_CONNECT_WRITE - Enum constant in enum class swim.io.FlowControl
-
accept, connect, and write enabled; read disabled.
- ACCEPT_READ - Enum constant in enum class swim.io.FlowControl
-
accept and read enabled; connect and write disabled.
- ACCEPT_READ_WRITE - Enum constant in enum class swim.io.FlowControl
-
accept, read, and write enabled; connect disabled.
- ACCEPT_WRITE - Enum constant in enum class swim.io.FlowControl
-
accept and write enabled; connect and read disabled.
- acceptDisabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its accept operation disabled. - acceptEnabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its accept operation enabled. - and(FlowControl) - Method in enum class swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisandthatenabled. - and(FlowModifier) - Method in enum class swim.io.FlowModifier
-
Returns the
FlowModifierwith all modifications applied inthisandthatapplied, with enable instructions taking precedence over conflicting disable instructions.
B
- backlog - Variable in class swim.io.TransportSettings
- backlog() - Method in class swim.io.TransportSettings
-
Returns the maximum length of the queue of incoming connections.
- backlog(int) - Method in class swim.io.TransportSettings
-
Returns a copy of these
TransportSettingsconfigured with the givenbacklogfor the maximum length of the queue of incoming connections. - become(IpSocket) - Method in class swim.io.AbstractIpModem
- become(IpSocket) - Method in class swim.io.AbstractIpSocket
- become(IpSocket) - Method in interface swim.io.IpModemContext
-
Rebinds the underlying
IpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks. - become(IpSocket) - Method in interface swim.io.IpSocketContext
-
Rebinds this
IpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks. - become(IpSocket) - Method in class swim.io.IpSocketModem
- bindTcp(String, int, IpService) - Method in interface swim.io.IpInterface
- bindTcp(String, int, IpService, IpSettings) - Method in interface swim.io.IpInterface
- bindTcp(InetSocketAddress, IpService) - Method in interface swim.io.IpInterface
- bindTcp(InetSocketAddress, IpService, IpSettings) - Method in interface swim.io.IpInterface
- bindTcp(InetSocketAddress, IpService, IpSettings) - Method in interface swim.io.IpStation
- bindTls(String, int, IpService) - Method in interface swim.io.IpInterface
- bindTls(String, int, IpService, IpSettings) - Method in interface swim.io.IpInterface
- bindTls(InetSocketAddress, IpService) - Method in interface swim.io.IpInterface
- bindTls(InetSocketAddress, IpService, IpSettings) - Method in interface swim.io.IpInterface
- bindTls(InetSocketAddress, IpService, IpSettings) - Method in interface swim.io.IpStation
C
- canEqual(Object) - Method in class swim.io.IpSettings
-
Returns
trueif theseIpSettingscan possibly equal someotherobject. - canEqual(Object) - Method in class swim.io.TcpSettings
-
Returns
trueif theseTcpSettingscan possibly equal someotherobject. - canEqual(Object) - Method in class swim.io.TlsSettings
-
Returns
trueif theseTlsSettingscan possibly equal someotherobject. - canEqual(Object) - Method in class swim.io.TransportSettings
-
Returns
trueif theseTransportSettingscan possibly equal someotherobject. - channel() - Method in interface swim.io.Transport
-
Returns the NIO channel that this
Transportmanages. - cipherSuite() - Method in class swim.io.AbstractIpModem
- cipherSuite() - Method in class swim.io.AbstractIpSocket
- cipherSuite() - Method in interface swim.io.IpContext
-
Returns the cryptographic cipher suite used by the underlying network connection.
- cipherSuite() - Method in class swim.io.IpSocketModem
- cipherSuites - Variable in class swim.io.TlsSettings
- cipherSuites() - Method in class swim.io.TlsSettings
-
Returns the set of permitted cipher suites for secure socket connections, or
nullif the system defaults should be used. - cipherSuites(Collection<String>) - Method in class swim.io.TlsSettings
-
Returns a copy of these
TlsSettingsconfigured with the given set ofcipherSuites;cipherSuitesmay benullif the system defaults should be used. - clientAuth - Variable in class swim.io.TlsSettings
- clientAuth() - Method in class swim.io.TlsSettings
-
Returns the authentication requirement for incoming connections.
- clientAuth(ClientAuth) - Method in class swim.io.TlsSettings
-
Returns a copy of these
TlsSettingsconfigured with the givenclientAuthauthentication requirement for incoming connections. - ClientAuth - Enum Class in swim.io
-
Transport-layer security client authentication configuration.
- close() - Method in class swim.io.AbstractIpModem
- close() - Method in class swim.io.AbstractIpSocket
- close() - Method in interface swim.io.IpModemContext
-
Closes the underlying network socket.
- close() - Method in class swim.io.IpSocketModem
- close() - Method in interface swim.io.IpSocketRef
-
Closes the underlying network socket.
- close() - Method in interface swim.io.TransportRef
-
Closes the underlying I/O transport.
- configure(Socket) - Method in class swim.io.IpSettings
-
Configures the
socketwith theseIpSettings. - configure(Socket) - Method in class swim.io.TcpSettings
-
Configures the
socketwith theseTcpSettings. - CONNECT - Enum constant in enum class swim.io.FlowControl
-
connect enabled; accept, read, and write disabled.
- CONNECT_READ - Enum constant in enum class swim.io.FlowControl
-
connect and read enabled; accept and write disabled.
- CONNECT_READ_WRITE - Enum constant in enum class swim.io.FlowControl
-
connect, read, and write enabled; accept disabled.
- CONNECT_WRITE - Enum constant in enum class swim.io.FlowControl
-
connect and write enabled; accept and read disabled.
- connectDisabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its connect operation disabled. - connectEnabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its connect operation enabled. - connectTcp(String, int, IpModem<I, O>) - Method in interface swim.io.IpInterface
- connectTcp(String, int, IpModem<I, O>, IpSettings) - Method in interface swim.io.IpInterface
- connectTcp(String, int, IpSocket) - Method in interface swim.io.IpInterface
- connectTcp(String, int, IpSocket, IpSettings) - Method in interface swim.io.IpInterface
- connectTcp(InetSocketAddress, IpModem<I, O>) - Method in interface swim.io.IpInterface
- connectTcp(InetSocketAddress, IpModem<I, O>, IpSettings) - Method in interface swim.io.IpInterface
- connectTcp(InetSocketAddress, IpSocket) - Method in interface swim.io.IpInterface
- connectTcp(InetSocketAddress, IpSocket, IpSettings) - Method in interface swim.io.IpInterface
- connectTcp(InetSocketAddress, IpSocket, IpSettings) - Method in interface swim.io.IpStation
- connectTls(String, int, IpModem<I, O>) - Method in interface swim.io.IpInterface
- connectTls(String, int, IpModem<I, O>, IpSettings) - Method in interface swim.io.IpInterface
- connectTls(String, int, IpSocket) - Method in interface swim.io.IpInterface
- connectTls(String, int, IpSocket, IpSettings) - Method in interface swim.io.IpInterface
- connectTls(InetSocketAddress, IpModem<I, O>) - Method in interface swim.io.IpInterface
- connectTls(InetSocketAddress, IpModem<I, O>, IpSettings) - Method in interface swim.io.IpInterface
- connectTls(InetSocketAddress, IpSocket) - Method in interface swim.io.IpInterface
- connectTls(InetSocketAddress, IpSocket, IpSettings) - Method in interface swim.io.IpInterface
- connectTls(InetSocketAddress, IpSocket, IpSettings) - Method in interface swim.io.IpStation
- context - Variable in class swim.io.AbstractIpModem
- context - Variable in class swim.io.AbstractIpService
- context - Variable in class swim.io.AbstractIpSocket
- context - Variable in class swim.io.IpSocketModem
- copy(boolean, boolean, int, int, int, int) - Method in class swim.io.TcpSettings
-
Returns a new
TcpSettingsinstance with the given options. - copy(int, long, long) - Method in class swim.io.TransportSettings
-
Returns a new
TransportSettingsinstance with the given options. - copy(SSLContext, ClientAuth, Collection<String>, Collection<String>) - Method in class swim.io.TlsSettings
-
Returns a new
TlsSettingsinstance with the given options. - copy(TcpSettings, TlsSettings) - Method in class swim.io.IpSettings
-
Returns a new
IpSettingsinstance with the given options. - create(ClientAuth, Collection<String>, Collection<String>) - Static method in class swim.io.TlsSettings
- create(TcpSettings) - Static method in class swim.io.IpSettings
- create(TlsSettings) - Static method in class swim.io.IpSettings
- createModem() - Method in class swim.io.AbstractIpService
- createSocket() - Method in class swim.io.AbstractIpService
- createSocket() - Method in interface swim.io.IpService
-
Returns a new
IpSocketbinding to handle an incoming network connection.
D
- debug(Output<T>) - Method in enum class swim.io.ClientAuth
- debug(Output<T>) - Method in enum class swim.io.FlowControl
- debug(Output<T>) - Method in enum class swim.io.FlowModifier
- debug(Output<T>) - Method in class swim.io.IpSettings
- debug(Output<T>) - Method in class swim.io.TcpSettings
- debug(Output<T>) - Method in class swim.io.TlsSettings
- debug(Output<T>) - Method in class swim.io.TransportSettings
- didAccept(IpSocket) - Method in class swim.io.AbstractIpService
- didAccept(IpSocket) - Method in interface swim.io.IpService
-
Lifecycle callback invoked by the service context after the underlying network listener has accepted a new
socketconnection. - didBecome(IpSocket) - Method in class swim.io.AbstractIpModem
- didBecome(IpSocket) - Method in class swim.io.AbstractIpSocket
- didBecome(IpSocket) - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context after it has
becomea newsocketimplementation. - didBecome(IpSocket) - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context after it has
becomea newsocketimplementation. - didBecome(IpSocket) - Method in class swim.io.IpSocketModem
- didBind() - Method in class swim.io.AbstractIpService
- didBind() - Method in interface swim.io.IpService
-
Lifecycle callback invoked by the service context after the underlying network listener has bound to a port.
- didClose() - Method in interface swim.io.Transport
-
Lifecycle callback invoked by the transport context after the underlying transport has closed.
- didConnect() - Method in class swim.io.AbstractIpModem
- didConnect() - Method in class swim.io.AbstractIpSocket
- didConnect() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context after the underlying network socket has opened a connection.
- didConnect() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context after the underlying network socket has opened a connection.
- didConnect() - Method in class swim.io.IpSocketModem
- didDisconnect() - Method in class swim.io.AbstractIpModem
- didDisconnect() - Method in class swim.io.AbstractIpSocket
- didDisconnect() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the socket context after the underlying network connection has disconnected.
- didDisconnect() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context after the underlying network connection has disconnected.
- didDisconnect() - Method in class swim.io.IpSocketModem
- didFail(Throwable) - Method in class swim.io.AbstractIpModem
- didFail(Throwable) - Method in class swim.io.AbstractIpService
- didFail(Throwable) - Method in class swim.io.AbstractIpSocket
- didFail(Throwable) - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context when the underlying network socket fails by throwing an
error. - didFail(Throwable) - Method in interface swim.io.IpService
-
Lifecycle callback invoked by the service context when the underlying network listener fails by throwing an
error. - didFail(Throwable) - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context when the underlying network socket fails by throwing an
error. - didFail(Throwable) - Method in class swim.io.IpSocketModem
- didFail(Throwable) - Method in class swim.io.Station
-
Lifecycle callback invoked if the selector thread throws a fatal
error. - didFail(Throwable) - Method in interface swim.io.Transport
-
Lifecycle callback invoked by the transport context when the underlying transport fails by throwing an
error. - didRead(I) - Method in class swim.io.AbstractIpModem
- didRead(I) - Method in interface swim.io.IpModem
-
I/O callback invoked by the modem context with the completed value of the current read
Decoderafter it has transitioned to the done state. - didSecure() - Method in class swim.io.AbstractIpModem
- didSecure() - Method in class swim.io.AbstractIpSocket
- didSecure() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context after the underlying network socket has established a secure connection.
- didSecure() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context after the underlying network socket has established a secure connection.
- didSecure() - Method in class swim.io.IpSocketModem
- didStart() - Method in class swim.io.Station
-
Lifecycle callback invoked after the selector thread starts.
- didStop() - Method in class swim.io.Station
-
Lifecycle callback invoked after the selector thread stops.
- didTimeout() - Method in class swim.io.AbstractIpModem
- didTimeout() - Method in class swim.io.AbstractIpSocket
- didTimeout() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context after the underlying network connection has timed out.
- didTimeout() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context after the underlying network connection has timed out.
- didTimeout() - Method in class swim.io.IpSocketModem
- didTimeout() - Method in interface swim.io.Transport
-
Lifecycle callback invoked by the transport context after the underlying transport has timed out.
- didUnbind() - Method in class swim.io.AbstractIpService
- didUnbind() - Method in interface swim.io.IpService
-
Lifecycle callback invoked by the service context after the underlying network listener has been unbound.
- didWrite() - Method in class swim.io.AbstractIpSocket
- didWrite() - Method in interface swim.io.IpSocket
-
I/O callback invoked by the socket context after the underlying network socket has completed writing all data in its
outputBuffer. - didWrite() - Method in class swim.io.IpSocketModem
- didWrite() - Method in interface swim.io.Transport
-
I/O callback invoked by the transport context after the underlying transport has completed writing all data in its
writeBuffer, thereby completing the current write operation. - didWrite(O) - Method in class swim.io.AbstractIpModem
- didWrite(O) - Method in interface swim.io.IpModem
-
I/O callback invoked by the modem context with the completed value of the current write
Encoderafter it has transitioned to the done state. - DISABLE_READ - Enum constant in enum class swim.io.FlowModifier
-
read operation should be disabled; write operation should not be modified.
- DISABLE_READ_ENABLE_WRITE - Enum constant in enum class swim.io.FlowModifier
-
read operation should be disabled; write operation should be enabled.
- DISABLE_READ_WRITE - Enum constant in enum class swim.io.FlowModifier
-
read and write operations should be disabled.
- DISABLE_WRITE - Enum constant in enum class swim.io.FlowModifier
-
write operation should be disabled; read operation should not be modified.
- DISABLE_WRITE_ENABLE_READ - Enum constant in enum class swim.io.FlowModifier
-
write operation should be disabled; read operation should be enabled.
- doAccept() - Method in interface swim.io.Transport
-
I/O callback invoked by the transport context when the underlying transport is ready to complete an accept operation.
- doConnect() - Method in interface swim.io.Transport
-
I/O callback invoked by the transport context when the underlying transport is ready to complete a connect operation.
- doRead() - Method in class swim.io.AbstractIpModem
- doRead() - Method in class swim.io.AbstractIpSocket
- doRead() - Method in interface swim.io.IpModem
-
I/O callback invoked by the modem context asking this
IpModemto provide an inputDecoderby invoking the modem context'sreadmethod. - doRead() - Method in interface swim.io.IpSocket
-
I/O callback invoked by the socket context asking this
IpSocketto read input data out of the socket context'sinputBuffer. - doRead() - Method in class swim.io.IpSocketModem
- doRead() - Method in interface swim.io.Transport
-
I/O callback invoked by the transport context asking this
Transportto read input data out of thereadBuffer, thereby completing a read operation from the underlying I/O transport. - doWrite() - Method in class swim.io.AbstractIpModem
- doWrite() - Method in class swim.io.AbstractIpSocket
- doWrite() - Method in interface swim.io.IpModem
-
I/O callback invoked by the modem context asking this
IpModemto provide an outputEncoderby invoking the modem context'swritemethod. - doWrite() - Method in interface swim.io.IpSocket
-
I/O callback invoked by the socket context asking this
IpSocketto write output data into the socket context'soutputBuffer. - doWrite() - Method in class swim.io.IpSocketModem
- doWrite() - Method in interface swim.io.Transport
-
I/O callback invoked by the transport context asking this
Transportto write output data into thewriteBuffer, thereby initiating a write operation to the underlying I/O transport.
E
- ENABLE_READ - Enum constant in enum class swim.io.FlowModifier
-
read operation should be enabled; write operation should not be modified.
- ENABLE_READ_WRITE - Enum constant in enum class swim.io.FlowModifier
-
read and write operations should be enabled.
- ENABLE_WRITE - Enum constant in enum class swim.io.FlowModifier
-
write operation should be enabled; read operation should not be modified.
- equals(Object) - Method in class swim.io.IpSettings
- equals(Object) - Method in class swim.io.TcpSettings
- equals(Object) - Method in class swim.io.TlsSettings
- equals(Object) - Method in class swim.io.TransportSettings
F
- FlowContext - Interface in swim.io
-
Flow-controlled network channel context.
- flowControl() - Method in class swim.io.AbstractIpModem
- flowControl() - Method in class swim.io.AbstractIpService
- flowControl() - Method in class swim.io.AbstractIpSocket
- flowControl() - Method in interface swim.io.FlowContext
-
Returns the current
FlowControlstate of the underlying network channel. - flowControl() - Method in class swim.io.IpSocketModem
- flowControl(FlowControl) - Method in class swim.io.AbstractIpModem
- flowControl(FlowControl) - Method in class swim.io.AbstractIpService
- flowControl(FlowControl) - Method in class swim.io.AbstractIpSocket
- flowControl(FlowControl) - Method in interface swim.io.FlowContext
-
Enqueues an atomic replacement of the underlying network channel's flow control state with a new
flowControl. - flowControl(FlowControl) - Method in class swim.io.IpSocketModem
- flowControl(FlowModifier) - Method in class swim.io.AbstractIpModem
- flowControl(FlowModifier) - Method in class swim.io.AbstractIpService
- flowControl(FlowModifier) - Method in class swim.io.AbstractIpSocket
- flowControl(FlowModifier) - Method in interface swim.io.FlowContext
-
Enqueues an atomic modification to the underlying network channel's flow control state by applying a
flowModifierdelta. - flowControl(FlowModifier) - Method in class swim.io.IpSocketModem
- FlowControl - Enum Class in swim.io
-
Network channel flow state, controlling accept, connect, read, and write operations.
- FlowModifier - Enum Class in swim.io
-
Network channel flow delta, modifying read and write operations.
- form() - Static method in enum class swim.io.ClientAuth
-
Returns the structural
FormofClientAuth. - form() - Static method in class swim.io.IpSettings
-
Returns the structural
FormofIpSettings. - form() - Static method in class swim.io.TcpSettings
-
Returns the structural
FormofTcpSettings. - form() - Static method in class swim.io.TlsSettings
-
Returns the structural
FormofTlsSettings. - form() - Static method in class swim.io.TransportSettings
-
Returns the structural
FormofTransportSettings. - from(String) - Static method in enum class swim.io.ClientAuth
-
Returns the
ClientAuthwith the given case-insensitivename, one of none, want, or need. - fromSelectorOps(int) - Static method in enum class swim.io.FlowControl
-
Returns the
FlowControlcorresponding to the givenSelectionKeyinterest set.
H
- hashCode() - Method in class swim.io.IpSettings
- hashCode() - Method in class swim.io.TcpSettings
- hashCode() - Method in class swim.io.TlsSettings
- hashCode() - Method in class swim.io.TransportSettings
I
- idleInterval - Variable in class swim.io.TransportSettings
- idleInterval() - Method in class swim.io.TransportSettings
-
Returns the number of milliseconds between transport idle checks.
- idleInterval(long) - Method in class swim.io.TransportSettings
-
Returns a copy of these
TransportSettingsconfigured with the givenidleIntervalfor transport idle checks. - idleTimeout - Variable in class swim.io.TransportSettings
- idleTimeout() - Method in class swim.io.AbstractIpModem
- idleTimeout() - Method in class swim.io.AbstractIpSocket
- idleTimeout() - Method in interface swim.io.IpModem
-
Returns the number of idle milliseconds after which this
IpModemshould be closed due to inactivity. - idleTimeout() - Method in interface swim.io.IpSocket
-
Returns the number of idle milliseconds after which this
IpSocketshould be closed due to inactivity. - idleTimeout() - Method in class swim.io.IpSocketModem
- idleTimeout() - Method in interface swim.io.Transport
-
Returns the number of idle milliseconds after which this
Transportshould be closed due to inactivity. - idleTimeout() - Method in class swim.io.TransportSettings
-
Returns the default number of idle milliseconds after which a transport should be timed out due to inactivity.
- idleTimeout(long) - Method in class swim.io.TransportSettings
-
Returns a copy of these
TransportSettingsconfigured with the givenidleTimeoutfor transport idle timeouts - inputBuffer() - Method in class swim.io.AbstractIpSocket
- inputBuffer() - Method in interface swim.io.IpSocketContext
-
Returns the buffer into which input data is read by the underlying network socket.
- IpContext - Interface in swim.io
-
IP network connection context.
- IpEndpoint - Class in swim.io
-
Network interface for binding and connecting IP sockets and modems.
- IpEndpoint(Stage) - Constructor for class swim.io.IpEndpoint
- IpEndpoint(Stage, IpSettings) - Constructor for class swim.io.IpEndpoint
- IpEndpoint(Station) - Constructor for class swim.io.IpEndpoint
- IpEndpoint(Station, IpSettings) - Constructor for class swim.io.IpEndpoint
- IpException - Exception in swim.io
- IpException() - Constructor for exception swim.io.IpException
- IpException(String) - Constructor for exception swim.io.IpException
- IpException(String, Throwable) - Constructor for exception swim.io.IpException
- IpException(Throwable) - Constructor for exception swim.io.IpException
- IpInterface - Interface in swim.io
- IpModem<I,
O> - Interface in swim.io -
Network socket binding that provides asynchronous I/O decoders and encoders for a non-blocking NIO network channel.
- ipModemContext() - Method in class swim.io.AbstractIpModem
- ipModemContext() - Method in interface swim.io.IpModem
-
Returns the socket modem context to which this
IpModemis bound; returnsnullif thisIpModemis unbound. - IpModemContext<I,
O> - Interface in swim.io -
Network socket context that manages asynchronous I/O decoders and encoders for a non-blocking NIO network channel.
- IpService - Interface in swim.io
-
Network service listener that handles asynchronous I/O operations for a non-blocking NIO server socket channel.
- ipServiceContext() - Method in class swim.io.AbstractIpService
- ipServiceContext() - Method in interface swim.io.IpService
-
Returns the network listener context to which this
IpServiceis bound; returnsnullif thisIpServiceis unbound. - IpServiceContext - Interface in swim.io
-
Network listener context that manages asynchronous I/O operations for a non-blocking NIO server socket channel.
- IpServiceRef - Interface in swim.io
-
External handle to a network
IpServicelistener. - ipSettings - Variable in class swim.io.IpEndpoint
- ipSettings() - Method in class swim.io.AbstractIpModem
- ipSettings() - Method in class swim.io.AbstractIpService
- ipSettings() - Method in class swim.io.AbstractIpSocket
- ipSettings() - Method in class swim.io.IpEndpoint
- ipSettings() - Method in interface swim.io.IpInterface
- ipSettings() - Method in interface swim.io.IpModemContext
-
Returns the configuration parameters that govern the underlying network socket.
- ipSettings() - Method in interface swim.io.IpServiceContext
-
Returns the configuration parameters that govern the underlying network listener.
- ipSettings() - Method in interface swim.io.IpSocketContext
-
Returns the configuration parameters that govern the underlying network socket.
- ipSettings() - Method in class swim.io.IpSocketModem
- IpSettings - Class in swim.io
-
IP Socket configuration parameters.
- IpSettings(TcpSettings, TlsSettings) - Constructor for class swim.io.IpSettings
- IpSocket - Interface in swim.io
-
Network socket binding that handles asynchronous I/O operations for a non-blocking NIO network channel.
- ipSocketContext() - Method in class swim.io.AbstractIpSocket
- ipSocketContext() - Method in interface swim.io.IpSocket
-
Returns the network socket context to which this
IpSocketis bound; returnsnullif thisIpSocketis unbound. - ipSocketContext() - Method in class swim.io.IpSocketModem
- IpSocketContext - Interface in swim.io
-
Network socket context that manages asynchronous I/O operations for a non-blocking NIO network channel.
- IpSocketModem<I,
O> - Class in swim.io - IpSocketModem(IpModem<I, O>) - Constructor for class swim.io.IpSocketModem
- IpSocketRef - Interface in swim.io
-
External handle to a network
IpSocket. - IpStation - Interface in swim.io
- isAcceptEnabled() - Method in enum class swim.io.FlowControl
-
Returns
trueif the accept operation is enabled. - isClient() - Method in class swim.io.AbstractIpModem
- isClient() - Method in class swim.io.AbstractIpSocket
- isClient() - Method in interface swim.io.IpContext
-
Returns
trueif the underlying network channel initiated an outgoing connection. - isClient() - Method in class swim.io.IpSocketModem
- isConnected() - Method in class swim.io.AbstractIpModem
- isConnected() - Method in class swim.io.AbstractIpSocket
- isConnected() - Method in interface swim.io.IpContext
-
Returns
trueif the underlying network channel is currently connected. - isConnected() - Method in class swim.io.IpSocketModem
- isConnectEnabled() - Method in enum class swim.io.FlowControl
-
Returns
trueif the connect operation is enabled. - isReadDisabled() - Method in enum class swim.io.FlowModifier
-
Returns
trueif the read operation should be disabled. - isReadEnabled() - Method in enum class swim.io.FlowControl
-
Returns
trueif the read operation is enabled. - isReadEnabled() - Method in enum class swim.io.FlowModifier
-
Returns
trueif the read operation should be enabled. - isSecure() - Method in class swim.io.AbstractIpModem
- isSecure() - Method in class swim.io.AbstractIpSocket
- isSecure() - Method in interface swim.io.IpContext
-
Returns
trueif the underlying network transport is encrypted. - isSecure() - Method in class swim.io.IpSocketModem
- isServer() - Method in class swim.io.AbstractIpModem
- isServer() - Method in class swim.io.AbstractIpSocket
- isServer() - Method in interface swim.io.IpContext
-
Returns
trueif the underlying network channel accepted an incoming connection. - isServer() - Method in class swim.io.IpSocketModem
- isWriteDisabled() - Method in enum class swim.io.FlowModifier
-
Returns
trueif the write operation should be disabled. - isWriteEnabled() - Method in enum class swim.io.FlowControl
-
Returns
trueif the write operation is enabled. - isWriteEnabled() - Method in enum class swim.io.FlowModifier
-
Returns
trueif the write operation should be enabled.
K
- keepAlive - Variable in class swim.io.TcpSettings
- keepAlive() - Method in class swim.io.TcpSettings
-
Returns
trueif TCP should be configured with theSO_KEEPALIVEsocket option to send keepalive probes to prevent idle connections from timing out. - keepAlive(boolean) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givenkeepAlivevalue for theSO_KEEPALIVEsocket option.
L
- localAddress() - Method in class swim.io.AbstractIpModem
- localAddress() - Method in class swim.io.AbstractIpService
- localAddress() - Method in class swim.io.AbstractIpSocket
- localAddress() - Method in interface swim.io.IpContext
-
Returns the IP address and port of the local endpoint of the underlying network connection.
- localAddress() - Method in interface swim.io.IpServiceRef
-
Returns the IP address and port to which the underlying network listener is bound.
- localAddress() - Method in class swim.io.IpSocketModem
- localCertificates() - Method in class swim.io.AbstractIpModem
- localCertificates() - Method in class swim.io.AbstractIpSocket
- localCertificates() - Method in interface swim.io.IpContext
-
Returns the certificate chain used to authenticate the local endpoint of the underlying network connection.
- localCertificates() - Method in class swim.io.IpSocketModem
- localPrincipal() - Method in class swim.io.AbstractIpModem
- localPrincipal() - Method in class swim.io.AbstractIpSocket
- localPrincipal() - Method in interface swim.io.IpContext
-
Returns the authenticated identity of the local endpoint of the underlying network connection.
- localPrincipal() - Method in class swim.io.IpSocketModem
M
- modify(FlowModifier) - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its read and write operations patched by aflowModifierdelta.
N
- NEED - Enum constant in enum class swim.io.ClientAuth
-
Client authentication required.
- noDelay - Variable in class swim.io.TcpSettings
- noDelay() - Method in class swim.io.TcpSettings
-
Returns
trueif TCP should be configured with theTCP_NODELAYsocket option to disable Nagle's algorithm. - noDelay(boolean) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givennoDelayvalue for theTCP_NODELAYsocket option. - NONE - Enum constant in enum class swim.io.ClientAuth
-
Client authentication disabled.
- not() - Method in enum class swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisdisabled, and all operations disabled inthisenabled. - not() - Method in enum class swim.io.FlowModifier
-
Returns the
FlowModifierwith all applied modifications inthisunapplied, and all unapplied operations inthisapplied, with enable instructions taking precedence over conflicting disable instructions.
O
- or(FlowControl) - Method in enum class swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisorthatenabled. - or(FlowModifier) - Method in enum class swim.io.FlowModifier
-
Returns the
FlowModifierwith all modifications applied inthisorthatapplied, with enable instructions taking precedence over conflicting disable instructions. - outputBuffer() - Method in class swim.io.AbstractIpSocket
- outputBuffer() - Method in interface swim.io.IpSocketContext
-
Returns the buffer from which output data is written by the underlying network socket.
P
- protocols - Variable in class swim.io.TlsSettings
- protocols() - Method in class swim.io.TlsSettings
-
Returns the set of permitted secure socket layer protocols, or
nullif the system defaults should be used. - protocols(Collection<String>) - Method in class swim.io.TlsSettings
-
Returns a copy of these
TlsSettingsconfigured with the given set ofprotocols;protocolsmay benullif the system defaults should be used.
R
- read(Decoder<I2>) - Method in class swim.io.AbstractIpModem
- read(Decoder<I2>) - Method in interface swim.io.IpModemContext
-
Enqueues a read
decoderto which input data will be asynchronously fed. - read(Decoder<I2>) - Method in class swim.io.IpSocketModem
- READ - Enum constant in enum class swim.io.FlowControl
-
read enabled; accept, connect, and write disabled.
- READ_WRITE - Enum constant in enum class swim.io.FlowControl
-
read and write enabled; accept and connect disabled.
- readBuffer() - Method in interface swim.io.Transport
-
Returns the buffer into which input data should be read by the underlying I/O transport.
- readBufferSize - Variable in class swim.io.TcpSettings
- readBufferSize() - Method in class swim.io.TcpSettings
-
Returns the size in bytes of the per-socket userspace buffers into which data is received.
- readBufferSize(int) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givenreadBufferSizefor per-socket userspace read buffers. - readDisabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its read operation disabled. - readEnabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its read operation enabled. - receiveBufferSize - Variable in class swim.io.TcpSettings
- receiveBufferSize() - Method in class swim.io.TcpSettings
-
Returns the value of the
SO_RCVBUFsocket option with which TCP should be configured to control the size of receive buffers. - receiveBufferSize(int) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givenreceiveBufferSizevalue for theSO_RCVBUFsocket option. - remoteAddress() - Method in class swim.io.AbstractIpModem
- remoteAddress() - Method in class swim.io.AbstractIpSocket
- remoteAddress() - Method in interface swim.io.IpContext
-
Returns the IP address and port of the remote endpoint of the underlying network connection.
- remoteAddress() - Method in class swim.io.IpSocketModem
- remoteCertificates() - Method in class swim.io.AbstractIpModem
- remoteCertificates() - Method in class swim.io.AbstractIpSocket
- remoteCertificates() - Method in interface swim.io.IpContext
-
Returns the certificate chain used to authenticate the remote endpoint of the underlying network connection.
- remoteCertificates() - Method in class swim.io.IpSocketModem
- remotePrincipal() - Method in class swim.io.AbstractIpModem
- remotePrincipal() - Method in class swim.io.AbstractIpSocket
- remotePrincipal() - Method in interface swim.io.IpContext
-
Returns the authenticated identity of the remote endpoint of the underlying network connection.
- remotePrincipal() - Method in class swim.io.IpSocketModem
- RESELECT - Enum constant in enum class swim.io.FlowModifier
-
read and write operations should not be modified.
S
- securityProtocol() - Method in class swim.io.AbstractIpModem
- securityProtocol() - Method in class swim.io.AbstractIpSocket
- securityProtocol() - Method in interface swim.io.IpContext
-
Returns the name of the transport-layer security protocol used by the underlying network connection.
- securityProtocol() - Method in class swim.io.IpSocketModem
- sendBufferSize - Variable in class swim.io.TcpSettings
- sendBufferSize() - Method in class swim.io.TcpSettings
-
Returns the value of the
SO_SNDBUFsocket option with which TCP should be configured to control the size of send buffers. - sendBufferSize(int) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givensendBufferSizevalue for theSO_SNDBUFsocket option. - setIpModemContext(IpModemContext<I, O>) - Method in class swim.io.AbstractIpModem
- setIpModemContext(IpModemContext<I, O>) - Method in interface swim.io.IpModem
-
Sets the socket modem context to which this
IpModemis bound. - setIpServiceContext(IpServiceContext) - Method in class swim.io.AbstractIpService
- setIpServiceContext(IpServiceContext) - Method in interface swim.io.IpService
-
Sets the network listener context to which this
IpServiceis bound. - setIpSocketContext(IpSocketContext) - Method in class swim.io.AbstractIpSocket
- setIpSocketContext(IpSocketContext) - Method in interface swim.io.IpSocket
-
Sets the network socket context to which this
IpSocketis bound. - setIpSocketContext(IpSocketContext) - Method in class swim.io.IpSocketModem
- setTransportContext(TransportContext) - Method in interface swim.io.Transport
-
Sets the I/O transport context to which this
Transportis bound. - sslContext - Variable in class swim.io.TlsSettings
- sslContext() - Method in class swim.io.TlsSettings
-
Returns the factory used to create secure sockets.
- sslContext(SSLContext) - Method in class swim.io.TlsSettings
-
Returns a copy of these
TlsSettingsconfigured with the givensslContextfor creating secure sockets. - stage - Variable in class swim.io.Station
-
Stage on which to execute I/O tasks.
- stage() - Method in class swim.io.IpEndpoint
- stage() - Method in class swim.io.Station
-
Returns the
Stageon which thisStationexecutes I/O tasks. - standard() - Static method in class swim.io.IpSettings
-
Returns the default
IpSettingsinstance. - standard() - Static method in class swim.io.TcpSettings
-
Returns the default
TcpSettingsinstance. - standard() - Static method in class swim.io.TlsSettings
-
Returns the default
TlsSettingsinstance. - standard() - Static method in class swim.io.TransportSettings
-
Returns the default
TransportSettingsinstance. - start() - Method in class swim.io.IpEndpoint
- start() - Method in class swim.io.Station
-
Ensures that this
Stationis up and running, starting up the selector thread if it has not yet been started. - station - Variable in class swim.io.IpEndpoint
- station() - Method in class swim.io.IpEndpoint
- station() - Method in interface swim.io.IpStation
- Station - Class in swim.io
-
Asynchronous I/O multiplexor.
- Station(Stage) - Constructor for class swim.io.Station
- Station(Stage, TransportSettings) - Constructor for class swim.io.Station
- StationException - Exception in swim.io
-
Thrown when a
Stationencounters an error. - StationException() - Constructor for exception swim.io.StationException
- StationException(String) - Constructor for exception swim.io.StationException
- StationException(String, Throwable) - Constructor for exception swim.io.StationException
- StationException(Throwable) - Constructor for exception swim.io.StationException
- stop() - Method in class swim.io.IpEndpoint
- stop() - Method in class swim.io.Station
-
Ensures that this
Stationhas been permanently stopped, shutting down the selector thread, if it's currently running. - swim.io - module swim.io
-
Explicitly flow-controlled, non-blocking, parallel I/O engine, with swim-codec-modulated socket modems, and TCP and TLS transports.
- swim.io - package swim.io
-
Explicitly flow-controlled, non-blocking, parallel I/O engine, with swim-codec-modulated socket modems, and TCP and TLS transports.
T
- tcpSettings - Variable in class swim.io.IpSettings
- tcpSettings() - Method in class swim.io.IpSettings
-
Returns the TCP socket configuration.
- tcpSettings(TcpSettings) - Method in class swim.io.IpSettings
-
Returns a copy of these
IpSettingsconfigured with the giventcpSettings. - TcpSettings - Class in swim.io
-
TCP configuration parameters.
- TcpSettings(boolean, boolean, int, int, int, int) - Constructor for class swim.io.TcpSettings
- tlsSettings - Variable in class swim.io.IpSettings
- tlsSettings() - Method in class swim.io.IpSettings
-
Returns the TLS socket configuration.
- tlsSettings(TlsSettings) - Method in class swim.io.IpSettings
-
Returns a copy of these
IpSettingsconfigured with the giventlsSettings. - TlsSettings - Class in swim.io
-
TLS configuration parameters.
- TlsSettings(SSLContext, ClientAuth, Collection<String>, Collection<String>) - Constructor for class swim.io.TlsSettings
- toSelectorOps() - Method in enum class swim.io.FlowControl
-
Returns the
SelectionKeyinterest set corresponding to thisFlowControl. - toString() - Method in class swim.io.IpSettings
- toString() - Method in class swim.io.TcpSettings
- toString() - Method in class swim.io.TlsSettings
- toString() - Method in class swim.io.TransportSettings
- toValue() - Method in class swim.io.IpSettings
-
Returns a structural
Valuerepresenting theseIpSettings. - toValue() - Method in class swim.io.TcpSettings
-
Returns a structural
Valuerepresenting theseTcpSettings. - toValue() - Method in class swim.io.TlsSettings
-
Returns a structural
Valuerepresenting theseTlsSettings. - toValue() - Method in class swim.io.TransportSettings
-
Returns a structural
Valuerepresenting theseTransportSettings. - transport(Transport, FlowControl) - Method in class swim.io.Station
-
Binds the given
transportto thisStation, initializing thetransport's context with the givenflowControlstate. - Transport - Interface in swim.io
-
I/O transport binding that handles asynchronous I/O operations for a non-blocking NIO channel.
- transportContext() - Method in interface swim.io.Transport
-
Returns the I/O transport context to which this
Transportis bound; returnsnullif thisTransportis unbound. - TransportContext - Interface in swim.io
-
I/O transport context that manages asynchronous I/O operations for a non-blocking NIO channel.
- transportDidAccept(Transport) - Method in class swim.io.Station
-
Introspection callback invoked after a
transportcompletes an accept operation. - transportDidClose(Transport) - Method in class swim.io.Station
-
Introspection callback invoked after a
transportcloses. - transportDidConnect(Transport) - Method in class swim.io.Station
-
Introspection callback invoked after a
transportcompletes a connect operation. - transportDidFail(Transport, Throwable) - Method in class swim.io.Station
-
Introspection callback invoked after a
transportoperation fails by throwing anerror. - transportDidTimeout(Transport) - Method in class swim.io.Station
-
Introspection callback invoked after a
transporttimes out. - TransportRef - Interface in swim.io
-
External handle to an I/O
Transport. - transportSettings - Variable in class swim.io.Station
-
Transport configuration parameters.
- transportSettings() - Method in class swim.io.Station
-
Returns the transport configuration parameters that govern this
Station's regsitered transports. - transportSettings() - Method in interface swim.io.TransportContext
-
Returns the configuration parameters that govern the underlying I/O transport.
- transportSettings(TransportSettings) - Method in class swim.io.Station
-
Updates the transport configuration parameters that govern this
Station's registered transports, and returnsthis. - TransportSettings - Class in swim.io
-
Transportconfiguration parameters. - TransportSettings(int, long, long) - Constructor for class swim.io.TransportSettings
U
- unbind() - Method in class swim.io.AbstractIpService
- unbind() - Method in interface swim.io.IpServiceRef
-
Unbinds the underlying network listener.
V
- valueOf(String) - Static method in enum class swim.io.ClientAuth
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class swim.io.FlowControl
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class swim.io.FlowModifier
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class swim.io.ClientAuth
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class swim.io.FlowControl
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class swim.io.FlowModifier
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WAIT - Enum constant in enum class swim.io.FlowControl
-
accept, connect, read, and write disabled.
- WANT - Enum constant in enum class swim.io.ClientAuth
-
Client authentication requested.
- willBecome(IpSocket) - Method in class swim.io.AbstractIpModem
- willBecome(IpSocket) - Method in class swim.io.AbstractIpSocket
- willBecome(IpSocket) - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context before it has
becomea newsocketimplementation. - willBecome(IpSocket) - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context before it has
becomea newsocketimplementation. - willBecome(IpSocket) - Method in class swim.io.IpSocketModem
- willConnect() - Method in class swim.io.AbstractIpModem
- willConnect() - Method in class swim.io.AbstractIpSocket
- willConnect() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context before the underlying network socket attempts to open a connection.
- willConnect() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context before the underlying network socket attempts to open a connection.
- willConnect() - Method in class swim.io.IpSocketModem
- willSecure() - Method in class swim.io.AbstractIpModem
- willSecure() - Method in class swim.io.AbstractIpSocket
- willSecure() - Method in interface swim.io.IpModem
-
Lifecycle callback invoked by the modem context before the underlying network socket establishes a secure connection.
- willSecure() - Method in interface swim.io.IpSocket
-
Lifecycle callback invoked by the socket context before the underlying network socket establishes a secure connection.
- willSecure() - Method in class swim.io.IpSocketModem
- willStart() - Method in class swim.io.Station
-
Lifecycle callback invoked before the selector thread starts.
- willStop() - Method in class swim.io.Station
-
Lifecycle callback invoked before the selector thread stops.
- write(Encoder<?, O2>) - Method in class swim.io.AbstractIpModem
- write(Encoder<?, O2>) - Method in interface swim.io.IpModemContext
-
Enqueues a write
encoderfrom which output data will be asynchronously pulled. - write(Encoder<?, O2>) - Method in class swim.io.IpSocketModem
- WRITE - Enum constant in enum class swim.io.FlowControl
-
write enabled; accept, connect, and read disabled.
- writeBuffer() - Method in interface swim.io.Transport
-
Returns the buffer from which output data should be written by the underlying I/O transport.
- writeBufferSize - Variable in class swim.io.TcpSettings
- writeBufferSize() - Method in class swim.io.TcpSettings
-
Returns the size in bytes of the per-socket userspace buffers from which data is sent.
- writeBufferSize(int) - Method in class swim.io.TcpSettings
-
Returns a copy of these
TcpSettingsconfigured with the givenwriteBufferSizefor per-socket userspace write buffers. - writeDisabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its write operation disabled. - writeEnabled() - Method in enum class swim.io.FlowControl
-
Returns an updated
FlowControlwith its write operation enabled.
X
- xor(FlowControl) - Method in enum class swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisorthat—but not both—enabled. - xor(FlowModifier) - Method in enum class swim.io.FlowModifier
-
Returns the
FlowModifierwith all modifications applied inthisorthat—but not both—applied, with enable instructions taking precedence over conflicting disable instructions.
All Classes and Interfaces|All Packages|Serialized Form