A B C D E F H I K L M N O P R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractModem<I,O> - Class in swim.io
- AbstractModem() - Constructor for class swim.io.AbstractModem
- AbstractService - Class in swim.io
- AbstractService() - Constructor for class swim.io.AbstractService
- AbstractSocket - Class in swim.io
- AbstractSocket() - Constructor for class swim.io.AbstractSocket
- ACCEPT - swim.io.FlowControl
-
accept enabled; connect, read, and write disabled.
- ACCEPT_CONNECT - swim.io.FlowControl
-
accept and connect enabled; read and write disabled.
- ACCEPT_CONNECT_READ - swim.io.FlowControl
-
accept, connect, and read enabled; write disabled.
- ACCEPT_CONNECT_READ_WRITE - swim.io.FlowControl
-
accept, connect, read, and write enabled.
- ACCEPT_CONNECT_WRITE - swim.io.FlowControl
-
accept, connect, and write enabled; read disabled.
- ACCEPT_READ - swim.io.FlowControl
-
accept and read enabled; connect and write disabled.
- ACCEPT_READ_WRITE - swim.io.FlowControl
-
accept, read, and write enabled; connect disabled.
- ACCEPT_WRITE - swim.io.FlowControl
-
accept and write enabled; connect and read disabled.
- acceptDisabled() - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its accept operation disabled. - acceptEnabled() - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its accept operation enabled. - and(FlowControl) - Method in enum swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisandthatenabled. - and(FlowModifier) - Method in enum 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(Socket) - Method in class swim.io.AbstractModem
- become(Socket) - Method in class swim.io.AbstractSocket
- become(Socket) - Method in interface swim.io.ModemContext
-
Rebinds the underlying
SocketContextto a newsocketimplementation, thereby changing theSockethandler that receives network I/O callbacks. - become(Socket) - Method in interface swim.io.SocketContext
-
Rebinds this
SocketContextto a newsocketimplementation, thereby changing theSockethandler that receives network I/O callbacks. - become(Socket) - Method in class swim.io.SocketModem
- bindTcp(String, int, Service) - Method in class swim.io.Endpoint
- bindTcp(String, int, Service, SocketSettings) - Method in class swim.io.Endpoint
- bindTcp(InetSocketAddress, Service) - Method in class swim.io.Endpoint
- bindTcp(InetSocketAddress, Service, SocketSettings) - Method in class swim.io.Endpoint
- bindTls(String, int, Service) - Method in class swim.io.Endpoint
- bindTls(String, int, Service, SocketSettings) - Method in class swim.io.Endpoint
- bindTls(InetSocketAddress, Service) - Method in class swim.io.Endpoint
- bindTls(InetSocketAddress, Service, SocketSettings) - Method in class swim.io.Endpoint
C
- canEqual(Object) - Method in class swim.io.SocketSettings
-
Returns
trueif theseSocketSettingscan 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.AbstractModem
- cipherSuite() - Method in class swim.io.AbstractSocket
- cipherSuite() - Method in interface swim.io.ConnectionContext
-
Returns the cryptographic cipher suite used by the underlying network connection.
- cipherSuite() - Method in class swim.io.SocketModem
- 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 in swim.io
-
Transport-layer security client authentication configuration.
- close() - Method in class swim.io.AbstractModem
- close() - Method in class swim.io.AbstractSocket
- close() - Method in interface swim.io.ModemContext
-
Closes the underlying network socket.
- close() - Method in class swim.io.SocketModem
- close() - Method in interface swim.io.SocketRef
-
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.SocketSettings
-
Configures the
socketwith theseSocketSettings. - configure(Socket) - Method in class swim.io.TcpSettings
-
Configures the
socketwith theseTcpSettings. - CONNECT - swim.io.FlowControl
-
connect enabled; accept, read, and write disabled.
- CONNECT_READ - swim.io.FlowControl
-
connect and read enabled; accept and write disabled.
- CONNECT_READ_WRITE - swim.io.FlowControl
-
connect, read, and write enabled; accept disabled.
- CONNECT_WRITE - swim.io.FlowControl
-
connect and write enabled; accept and read disabled.
- connectDisabled() - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its connect operation disabled. - connectEnabled() - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its connect operation enabled. - ConnectionContext - Interface in swim.io
-
Connection-oriented network channel context.
- connectTcp(String, int, Modem<I, O>) - Method in class swim.io.Endpoint
- connectTcp(String, int, Modem<I, O>, SocketSettings) - Method in class swim.io.Endpoint
- connectTcp(String, int, Socket) - Method in class swim.io.Endpoint
- connectTcp(String, int, Socket, SocketSettings) - Method in class swim.io.Endpoint
- connectTcp(InetSocketAddress, Modem<I, O>) - Method in class swim.io.Endpoint
- connectTcp(InetSocketAddress, Modem<I, O>, SocketSettings) - Method in class swim.io.Endpoint
- connectTcp(InetSocketAddress, Socket) - Method in class swim.io.Endpoint
- connectTcp(InetSocketAddress, Socket, SocketSettings) - Method in class swim.io.Endpoint
- connectTls(String, int, Modem<I, O>) - Method in class swim.io.Endpoint
- connectTls(String, int, Modem<I, O>, SocketSettings) - Method in class swim.io.Endpoint
- connectTls(String, int, Socket) - Method in class swim.io.Endpoint
- connectTls(String, int, Socket, SocketSettings) - Method in class swim.io.Endpoint
- connectTls(InetSocketAddress, Modem<I, O>) - Method in class swim.io.Endpoint
- connectTls(InetSocketAddress, Modem<I, O>, SocketSettings) - Method in class swim.io.Endpoint
- connectTls(InetSocketAddress, Socket) - Method in class swim.io.Endpoint
- connectTls(InetSocketAddress, Socket, SocketSettings) - Method in class swim.io.Endpoint
- context - Variable in class swim.io.AbstractModem
- context - Variable in class swim.io.AbstractService
- context - Variable in class swim.io.AbstractSocket
- context - Variable in class swim.io.SocketModem
- 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.SocketSettings
-
Returns a new
SocketSettingsinstance with the given options. - create(ClientAuth, Collection<String>, Collection<String>) - Static method in class swim.io.TlsSettings
- createModem() - Method in class swim.io.AbstractService
- createSocket() - Method in class swim.io.AbstractService
- createSocket() - Method in interface swim.io.Service
-
Returns a new
Socketbinding to handle an incoming network connection.
D
- debug(Output<?>) - Method in enum swim.io.ClientAuth
- debug(Output<?>) - Method in enum swim.io.FlowControl
- debug(Output<?>) - Method in enum swim.io.FlowModifier
- debug(Output<?>) - Method in class swim.io.SocketSettings
- debug(Output<?>) - Method in class swim.io.TcpSettings
- debug(Output<?>) - Method in class swim.io.TlsSettings
- debug(Output<?>) - Method in class swim.io.TransportSettings
- didAccept(Socket) - Method in class swim.io.AbstractService
- didAccept(Socket) - Method in interface swim.io.Service
-
Lifecycle callback invoked by the service context after the underlying network listener has accepted a new
socketconnection. - didBecome(Socket) - Method in class swim.io.AbstractModem
- didBecome(Socket) - Method in class swim.io.AbstractSocket
- didBecome(Socket) - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context after it has
becomea newsocketimplementation. - didBecome(Socket) - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context after it has
becomea newsocketimplementation. - didBecome(Socket) - Method in class swim.io.SocketModem
- didBind() - Method in class swim.io.AbstractService
- didBind() - Method in interface swim.io.Service
-
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.AbstractModem
- didConnect() - Method in class swim.io.AbstractSocket
- didConnect() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context after the underlying network socket has opened a connection.
- didConnect() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context after the underlying network socket has opened a connection.
- didConnect() - Method in class swim.io.SocketModem
- didDisconnect() - Method in class swim.io.AbstractModem
- didDisconnect() - Method in class swim.io.AbstractSocket
- didDisconnect() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the socket context after the underlying network connection has disconnected.
- didDisconnect() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context after the underlying network connection has disconnected.
- didDisconnect() - Method in class swim.io.SocketModem
- didFail(Throwable) - Method in class swim.io.AbstractModem
- didFail(Throwable) - Method in class swim.io.AbstractService
- didFail(Throwable) - Method in class swim.io.AbstractSocket
- didFail(Throwable) - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context when the underlying network socket fails by throwing an
error. - didFail(Throwable) - Method in interface swim.io.Service
-
Lifecycle callback invoked by the service context when the underlying network listener fails by throwing an
error. - didFail(Throwable) - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context when the underlying network socket fails by throwing an
error. - didFail(Throwable) - Method in class swim.io.SocketModem
- 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.AbstractModem
- didRead(I) - Method in interface swim.io.Modem
-
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.AbstractModem
- didSecure() - Method in class swim.io.AbstractSocket
- didSecure() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context after the underlying network socket has established a secure connection.
- didSecure() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context after the underlying network socket has established a secure connection.
- didSecure() - Method in class swim.io.SocketModem
- 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.AbstractModem
- didTimeout() - Method in class swim.io.AbstractSocket
- didTimeout() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context after the underlying network connection has timed out.
- didTimeout() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context after the underlying network connection has timed out.
- didTimeout() - Method in class swim.io.SocketModem
- 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.AbstractService
- didUnbind() - Method in interface swim.io.Service
-
Lifecycle callback invoked by the service context after the underlying network listener has been unbound.
- didWrite() - Method in class swim.io.AbstractSocket
- didWrite() - Method in interface swim.io.Socket
-
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.SocketModem
- 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.AbstractModem
- didWrite(O) - Method in interface swim.io.Modem
-
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 - swim.io.FlowModifier
-
read operation should be disabled; write operation should not be modified.
- DISABLE_READ_ENABLE_WRITE - swim.io.FlowModifier
-
read operation should be disabled; write operation should be enabled.
- DISABLE_READ_WRITE - swim.io.FlowModifier
-
read and write operations should be disabled.
- DISABLE_WRITE - swim.io.FlowModifier
-
write operation should be disabled; read operation should not be modified.
- DISABLE_WRITE_ENABLE_READ - 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.AbstractModem
- doRead() - Method in class swim.io.AbstractSocket
- doRead() - Method in interface swim.io.Modem
-
I/O callback invoked by the modem context asking this
Modemto provide an inputDecoderby invoking the modem context'sreadmethod. - doRead() - Method in interface swim.io.Socket
-
I/O callback invoked by the socket context asking this
Socketto read input data out of the socket context'sinputBuffer. - doRead() - Method in class swim.io.SocketModem
- 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.AbstractModem
- doWrite() - Method in class swim.io.AbstractSocket
- doWrite() - Method in interface swim.io.Modem
-
I/O callback invoked by the modem context asking this
Modemto provide an outputEncoderby invoking the modem context'swritemethod. - doWrite() - Method in interface swim.io.Socket
-
I/O callback invoked by the socket context asking this
Socketto write output data into the socket context'soutputBuffer. - doWrite() - Method in class swim.io.SocketModem
- 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 - swim.io.FlowModifier
-
read operation should be enabled; write operation should not be modified.
- ENABLE_READ_WRITE - swim.io.FlowModifier
-
read and write operations should be enabled.
- ENABLE_WRITE - swim.io.FlowModifier
-
write operation should be enabled; read operation should not be modified.
- Endpoint - Class in swim.io
-
Network interface for binding and connecting IP sockets and modems.
- Endpoint(Stage) - Constructor for class swim.io.Endpoint
- Endpoint(Stage, SocketSettings) - Constructor for class swim.io.Endpoint
- Endpoint(Station) - Constructor for class swim.io.Endpoint
- Endpoint(Station, SocketSettings) - Constructor for class swim.io.Endpoint
- equals(Object) - Method in class swim.io.SocketSettings
- 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.AbstractModem
- flowControl() - Method in class swim.io.AbstractService
- flowControl() - Method in class swim.io.AbstractSocket
- flowControl() - Method in interface swim.io.FlowContext
-
Returns the current
FlowControlstate of the underlying network channel. - flowControl() - Method in class swim.io.SocketModem
- flowControl(FlowControl) - Method in class swim.io.AbstractModem
- flowControl(FlowControl) - Method in class swim.io.AbstractService
- flowControl(FlowControl) - Method in class swim.io.AbstractSocket
- 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.SocketModem
- flowControl(FlowModifier) - Method in class swim.io.AbstractModem
- flowControl(FlowModifier) - Method in class swim.io.AbstractService
- flowControl(FlowModifier) - Method in class swim.io.AbstractSocket
- 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.SocketModem
- FlowControl - Enum in swim.io
-
Network channel flow state, controlling accept, connect, read, and write operations.
- FlowModifier - Enum in swim.io
-
Network channel flow delta, modifying read and write operations.
- form() - Static method in enum swim.io.ClientAuth
-
Returns the structural
FormofClientAuth. - form() - Static method in class swim.io.SocketSettings
-
Returns the structural
FormofSocketSettings. - 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 swim.io.ClientAuth
-
Returns the
ClientAuthwith the given case-insensitivename, one of none, want, or need. - from(TcpSettings) - Static method in class swim.io.SocketSettings
- from(TlsSettings) - Static method in class swim.io.SocketSettings
- fromSelectorOps(int) - Static method in enum swim.io.FlowControl
-
Returns the
FlowControlcorresponding to the givenSelectionKeyinterest set.
H
- hashCode() - Method in class swim.io.SocketSettings
- 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.AbstractModem
- idleTimeout() - Method in class swim.io.AbstractSocket
- idleTimeout() - Method in interface swim.io.Modem
-
Returns the number of idle milliseconds after which this
Modemshould be closed due to inactivity. - idleTimeout() - Method in interface swim.io.Socket
-
Returns the number of idle milliseconds after which this
Socketshould be closed due to inactivity. - idleTimeout() - Method in class swim.io.SocketModem
- 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.AbstractSocket
- inputBuffer() - Method in interface swim.io.SocketContext
-
Returns the buffer into which input data is read by the underlying network socket.
- isAcceptEnabled() - Method in enum swim.io.FlowControl
-
Returns
trueif the accept operation is enabled. - isClient() - Method in class swim.io.AbstractModem
- isClient() - Method in class swim.io.AbstractSocket
- isClient() - Method in interface swim.io.ConnectionContext
-
Returns
trueif the underlying network channel initiated an outgoing connection. - isClient() - Method in class swim.io.SocketModem
- isConnected() - Method in class swim.io.AbstractModem
- isConnected() - Method in class swim.io.AbstractSocket
- isConnected() - Method in interface swim.io.ConnectionContext
-
Returns
trueif the underlying network channel is currently connected. - isConnected() - Method in class swim.io.SocketModem
- isConnectEnabled() - Method in enum swim.io.FlowControl
-
Returns
trueif the connect operation is enabled. - isReadDisabled() - Method in enum swim.io.FlowModifier
-
Returns
trueif the read operation should be disabled. - isReadEnabled() - Method in enum swim.io.FlowControl
-
Returns
trueif the read operation is enabled. - isReadEnabled() - Method in enum swim.io.FlowModifier
-
Returns
trueif the read operation should be enabled. - isSecure() - Method in class swim.io.AbstractModem
- isSecure() - Method in class swim.io.AbstractSocket
- isSecure() - Method in interface swim.io.ConnectionContext
-
Returns
trueif the underlying network transport is encrypted. - isSecure() - Method in class swim.io.SocketModem
- isServer() - Method in class swim.io.AbstractModem
- isServer() - Method in class swim.io.AbstractSocket
- isServer() - Method in interface swim.io.ConnectionContext
-
Returns
trueif the underlying network channel accepted an incoming connection. - isServer() - Method in class swim.io.SocketModem
- isWriteDisabled() - Method in enum swim.io.FlowModifier
-
Returns
trueif the write operation should be disabled. - isWriteEnabled() - Method in enum swim.io.FlowControl
-
Returns
trueif the write operation is enabled. - isWriteEnabled() - Method in enum 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.AbstractModem
- localAddress() - Method in class swim.io.AbstractService
- localAddress() - Method in class swim.io.AbstractSocket
- localAddress() - Method in interface swim.io.ConnectionContext
-
Returns the IP address and port of the local endpoint of the underlying network connection.
- localAddress() - Method in interface swim.io.ServiceRef
-
Returns the IP address and port to which the underlying network listener is bound.
- localAddress() - Method in class swim.io.SocketModem
- localCertificates() - Method in class swim.io.AbstractModem
- localCertificates() - Method in class swim.io.AbstractSocket
- localCertificates() - Method in interface swim.io.ConnectionContext
-
Returns the certificate chain used to authenticate the local endpoint of the underlying network connection.
- localCertificates() - Method in class swim.io.SocketModem
- localPrincipal() - Method in class swim.io.AbstractModem
- localPrincipal() - Method in class swim.io.AbstractSocket
- localPrincipal() - Method in interface swim.io.ConnectionContext
-
Returns the authenticated identity of the local endpoint of the underlying network connection.
- localPrincipal() - Method in class swim.io.SocketModem
M
- Modem<I,O> - Interface in swim.io
-
Network socket binding that provides asynchronous I/O decoders and encoders for a non-blocking NIO network channel.
- modemContext() - Method in class swim.io.AbstractModem
- modemContext() - Method in interface swim.io.Modem
-
Returns the socket modem context to which this
Modemis bound; returnsnullif thisModemis unbound. - ModemContext<I,O> - Interface in swim.io
-
Network socket context that manages asynchronous I/O decoders and encoders for a non-blocking NIO network channel.
- modify(FlowModifier) - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its read and write operations patched by aflowModifierdelta.
N
- NEED - 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 - swim.io.ClientAuth
-
Client authentication disabled.
- not() - Method in enum swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisdisabled, and all operations disabled inthisenabled. - not() - Method in enum 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 swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisorthatenabled. - or(FlowModifier) - Method in enum 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.AbstractSocket
- outputBuffer() - Method in interface swim.io.SocketContext
-
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.AbstractModem
- read(Decoder<I2>) - Method in interface swim.io.ModemContext
-
Enqueues a read
decoderto which input data will be asynchronously fed. - read(Decoder<I2>) - Method in class swim.io.SocketModem
- READ - swim.io.FlowControl
-
read enabled; accept, connect, and write disabled.
- READ_WRITE - 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 swim.io.FlowControl
-
Returns an updated
FlowControlwith its read operation disabled. - readEnabled() - Method in enum 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.AbstractModem
- remoteAddress() - Method in class swim.io.AbstractSocket
- remoteAddress() - Method in interface swim.io.ConnectionContext
-
Returns the IP address and port of the remote endpoint of the underlying network connection.
- remoteAddress() - Method in class swim.io.SocketModem
- remoteCertificates() - Method in class swim.io.AbstractModem
- remoteCertificates() - Method in class swim.io.AbstractSocket
- remoteCertificates() - Method in interface swim.io.ConnectionContext
-
Returns the certificate chain used to authenticate the remote endpoint of the underlying network connection.
- remoteCertificates() - Method in class swim.io.SocketModem
- remotePrincipal() - Method in class swim.io.AbstractModem
- remotePrincipal() - Method in class swim.io.AbstractSocket
- remotePrincipal() - Method in interface swim.io.ConnectionContext
-
Returns the authenticated identity of the remote endpoint of the underlying network connection.
- remotePrincipal() - Method in class swim.io.SocketModem
- RESELECT - swim.io.FlowModifier
-
read and write operations should not be modified.
S
- securityProtocol() - Method in class swim.io.AbstractModem
- securityProtocol() - Method in class swim.io.AbstractSocket
- securityProtocol() - Method in interface swim.io.ConnectionContext
-
Returns the name of the transport-layer security protocol used by the underlying network connection.
- securityProtocol() - Method in class swim.io.SocketModem
- 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. - Service - Interface in swim.io
-
Network service listener that handles asynchronous I/O operations for a non-blocking NIO server socket channel.
- serviceContext() - Method in class swim.io.AbstractService
- serviceContext() - Method in interface swim.io.Service
-
Returns the network listener context to which this
Serviceis bound; returnsnullif thisServiceis unbound. - ServiceContext - Interface in swim.io
-
Network listener context that manages asynchronous I/O operations for a non-blocking NIO server socket channel.
- ServiceRef - Interface in swim.io
-
External handle to a network
Servicelistener. - setModemContext(ModemContext<I, O>) - Method in class swim.io.AbstractModem
- setModemContext(ModemContext<I, O>) - Method in interface swim.io.Modem
-
Sets the socket modem context to which this
Modemis bound. - setServiceContext(ServiceContext) - Method in class swim.io.AbstractService
- setServiceContext(ServiceContext) - Method in interface swim.io.Service
-
Sets the network listener context to which this
Serviceis bound. - setSocketContext(SocketContext) - Method in class swim.io.AbstractSocket
- setSocketContext(SocketContext) - Method in interface swim.io.Socket
-
Sets the network socket context to which this
Socketis bound. - setSocketContext(SocketContext) - Method in class swim.io.SocketModem
- setTransportContext(TransportContext) - Method in interface swim.io.Transport
-
Sets the I/O transport context to which this
Transportis bound. - Socket - Interface in swim.io
-
Network socket binding that handles asynchronous I/O operations for a non-blocking NIO network channel.
- socketContext() - Method in class swim.io.AbstractSocket
- socketContext() - Method in interface swim.io.Socket
-
Returns the network socket context to which this
Socketis bound; returnsnullif thisSocketis unbound. - socketContext() - Method in class swim.io.SocketModem
- SocketContext - Interface in swim.io
-
Network socket context that manages asynchronous I/O operations for a non-blocking NIO network channel.
- SocketModem<I,O> - Class in swim.io
- SocketModem(Modem<I, O>) - Constructor for class swim.io.SocketModem
- SocketRef - Interface in swim.io
-
External handle to a network
Socket. - socketSettings - Variable in class swim.io.Endpoint
- socketSettings() - Method in class swim.io.AbstractModem
- socketSettings() - Method in class swim.io.AbstractService
- socketSettings() - Method in class swim.io.AbstractSocket
- socketSettings() - Method in class swim.io.Endpoint
- socketSettings() - Method in interface swim.io.ModemContext
-
Returns the configuration parameters that govern the underlying network socket.
- socketSettings() - Method in interface swim.io.ServiceContext
-
Returns the configuration parameters that govern the underlying network listener.
- socketSettings() - Method in interface swim.io.SocketContext
-
Returns the configuration parameters that govern the underlying network socket.
- socketSettings() - Method in class swim.io.SocketModem
- SocketSettings - Class in swim.io
-
Socket configuration parameters.
- SocketSettings(TcpSettings, TlsSettings) - Constructor for class swim.io.SocketSettings
- 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.Endpoint
- stage() - Method in class swim.io.Station
-
Returns the
Stageon which thisStationexecutes I/O tasks. - standard() - Static method in class swim.io.SocketSettings
-
Returns the default
SocketSettingsinstance. - 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.Endpoint
- 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.Endpoint
- station() - Method in class swim.io.Endpoint
- 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.Endpoint
- 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
-
Flow-controlled input/output library.
- swim.io - package swim.io
-
Flow-controlled input/output library.
T
- tcpSettings - Variable in class swim.io.SocketSettings
- tcpSettings() - Method in class swim.io.SocketSettings
-
Returns the TCP socket configuration.
- tcpSettings(TcpSettings) - Method in class swim.io.SocketSettings
-
Returns a copy of these
SocketSettingsconfigured 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.SocketSettings
- tlsSettings() - Method in class swim.io.SocketSettings
-
Returns the TLS socket configuration.
- tlsSettings(TlsSettings) - Method in class swim.io.SocketSettings
-
Returns a copy of these
SocketSettingsconfigured 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 swim.io.FlowControl
-
Returns the
SelectionKeyinterest set corresponding to thisFlowControl. - toString() - Method in class swim.io.SocketSettings
- 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.SocketSettings
-
Returns a structural
Valuerepresenting theseSocketSettings. - 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.AbstractService
- unbind() - Method in interface swim.io.ServiceRef
-
Unbinds the underlying network listener.
V
- valueOf(String) - Static method in enum swim.io.ClientAuth
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum swim.io.FlowControl
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum swim.io.FlowModifier
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum swim.io.ClientAuth
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum swim.io.FlowControl
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum swim.io.FlowModifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WAIT - swim.io.FlowControl
-
accept, connect, read, and write disabled.
- WANT - swim.io.ClientAuth
-
Client authentication requested.
- willBecome(Socket) - Method in class swim.io.AbstractModem
- willBecome(Socket) - Method in class swim.io.AbstractSocket
- willBecome(Socket) - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context before it has
becomea newsocketimplementation. - willBecome(Socket) - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context before it has
becomea newsocketimplementation. - willBecome(Socket) - Method in class swim.io.SocketModem
- willConnect() - Method in class swim.io.AbstractModem
- willConnect() - Method in class swim.io.AbstractSocket
- willConnect() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context before the underlying network socket attempts to open a connection.
- willConnect() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context before the underlying network socket attempts to open a connection.
- willConnect() - Method in class swim.io.SocketModem
- willSecure() - Method in class swim.io.AbstractModem
- willSecure() - Method in class swim.io.AbstractSocket
- willSecure() - Method in interface swim.io.Modem
-
Lifecycle callback invoked by the modem context before the underlying network socket establishes a secure connection.
- willSecure() - Method in interface swim.io.Socket
-
Lifecycle callback invoked by the socket context before the underlying network socket establishes a secure connection.
- willSecure() - Method in class swim.io.SocketModem
- 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.AbstractModem
- write(Encoder<?, O2>) - Method in interface swim.io.ModemContext
-
Enqueues a write
encoderfrom which output data will be asynchronously pulled. - write(Encoder<?, O2>) - Method in class swim.io.SocketModem
- WRITE - 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 swim.io.FlowControl
-
Returns an updated
FlowControlwith its write operation disabled. - writeEnabled() - Method in enum swim.io.FlowControl
-
Returns an updated
FlowControlwith its write operation enabled.
X
- xor(FlowControl) - Method in enum swim.io.FlowControl
-
Returns the
FlowControlwith all operations enabled inthisorthat—but not both—enabled. - xor(FlowModifier) - Method in enum 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 All Packages