- canRead() - Method in class org.threadly.litesockets.Client
-
Returns true if this client can have reads added to it or false if its read buffers are full.
- canWrite() - Method in class org.threadly.litesockets.Client
-
Returns true if this client has data pending in its write buffers.
- canWrite() - Method in class org.threadly.litesockets.TCPClient
-
- canWrite() - Method in class org.threadly.litesockets.UDPClient
-
- checkClientTrusted(X509Certificate[], String) - Method in class org.threadly.litesockets.utils.SSLUtils.FullTrustManager
-
- checkServerTrusted(X509Certificate[], String) - Method in class org.threadly.litesockets.utils.SSLUtils.FullTrustManager
-
- Client - Class in org.threadly.litesockets
-
This is the base Client object for client communication.
- Client(SocketExecuterCommonBase, boolean) - Constructor for class org.threadly.litesockets.Client
-
- Client.ClientCloseListener - Interface in org.threadly.litesockets
-
Used to notify when a Client is closed.
- Client.ClientOptions - Interface in org.threadly.litesockets
-
ClientOptions that can be changed depending on what kind of client you want.
- Client.Reader - Interface in org.threadly.litesockets
-
Used to notify when a Client there is data to Read for a Client.
- ClientInputStream(Client) - Constructor for class org.threadly.litesockets.utils.IOUtils.ClientInputStream
-
- clientOptions() - Method in class org.threadly.litesockets.Client
-
This allows you to set/get client options for this client connection.
- clientOptions() - Method in class org.threadly.litesockets.TCPClient
-
- clientOptions() - Method in class org.threadly.litesockets.UDPClient
-
- ClientOutputStream(Client) - Constructor for class org.threadly.litesockets.utils.IOUtils.ClientOutputStream
-
- ClientSettableListenableFuture<T> - Class in org.threadly.litesockets
-
Implementation of SettableListenableFuture to access protected constructor where
we can specify the executor the listener will complete on.
- ClientSettableListenableFuture(Client) - Constructor for class org.threadly.litesockets.ClientSettableListenableFuture
-
- close() - Method in class org.threadly.litesockets.Client
-
Closes this client.
- close(Throwable) - Method in class org.threadly.litesockets.Client
-
Closes this client.
- close() - Method in class org.threadly.litesockets.Server
-
Close this servers Socket.
- close(Throwable) - Method in class org.threadly.litesockets.Server
-
Close this servers Socket.
- close(Throwable) - Method in class org.threadly.litesockets.TCPClient
-
- close(Throwable) - Method in class org.threadly.litesockets.TCPServer
-
- close(Throwable) - Method in class org.threadly.litesockets.UDPClient
-
- close(Throwable) - Method in class org.threadly.litesockets.UDPServer
-
- closeQuietly(Closeable) - Static method in class org.threadly.litesockets.utils.IOUtils
-
Another implementation of a silent closing function.
- commit() - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
-
Commit a already started transaction.
- connect() - Method in class org.threadly.litesockets.Client
-
Called to connect this client to a host.
- connect() - Method in class org.threadly.litesockets.TCPClient
-
- connect() - Method in class org.threadly.litesockets.UDPClient
-
- createTCPClient(String, int) - Method in interface org.threadly.litesockets.SocketExecuter
-
- createTCPClient(SocketChannel) - Method in interface org.threadly.litesockets.SocketExecuter
-
- createTCPServer(String, int) - Method in interface org.threadly.litesockets.SocketExecuter
-
- createTCPServer(ServerSocketChannel) - Method in interface org.threadly.litesockets.SocketExecuter
-
This will crate a
TCPServer from a given
ServerSocketChannel object.
- createUDPClient(String, int) - Method in class org.threadly.litesockets.UDPServer
-
Creates a new client from this UDPServer.
- createUDPServer(String, int) - Method in interface org.threadly.litesockets.SocketExecuter
-
- generateKeyStore(List<X509Certificate>, RSAPrivateKey) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- generateKeyStoreFromPEM(File, File) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
Creates a KeyManagerFactory from PEM files (something java should just do...).
- get() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- get(byte[], int, int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- get(byte[]) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- get() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns the next byte stored in the MergedByteBuffers.
- get(byte[]) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Fills the passed byte[] completely with data from the MergedByteBuffer.
- get(byte[], int, int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Fills the passed byte[] completely with data from the MergedByteBuffer.
- get() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
-
- get(byte[], int, int) - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
-
- get() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
-
- get(byte[], int, int) - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
-
- get() - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
-
- get(byte[]) - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
-
- getAcceptedIssuers() - Method in class org.threadly.litesockets.utils.SSLUtils.FullTrustManager
-
- getAsString(int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getAsString(int, Charset) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getAsString(int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
This will return the specified number of bytes as a String object.
- getAsString(int, Charset) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
This will return the specified number of bytes as a String object.
- getClientAcceptor() - Method in class org.threadly.litesockets.Server
-
- getClientAcceptor() - Method in class org.threadly.litesockets.UDPServer
-
- getClientCount() - Method in interface org.threadly.litesockets.SocketExecuter
-
Get the count of
Client on this SocketExecuter.
- getClientsSocketExecuter() - Method in class org.threadly.litesockets.Client
-
- getClientsThreadExecutor() - Method in class org.threadly.litesockets.Client
-
This returns this clients SubmitterExecutor.
- getExecutorFor(Object) - Method in class org.threadly.litesockets.NoThreadSocketExecuter
-
- getExecutorFor(Object) - Method in interface org.threadly.litesockets.SocketExecuter
-
This allows you to get the SubmitterExecutor for a specified object.
- getExecutorFor(Object) - Method in class org.threadly.litesockets.ThreadedSocketExecuter
-
- getFrameSize() - Method in class org.threadly.litesockets.UDPServer
-
Gets the frame size for this UDPServer.
- getInt() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getInt() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns the next 4 bytes as an int value.
- getLocalSocketAddress() - Method in class org.threadly.litesockets.Client
-
- getLocalSocketAddress() - Method in class org.threadly.litesockets.TCPClient
-
- getLocalSocketAddress() - Method in class org.threadly.litesockets.UDPClient
-
- getLong() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getLong() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns the next 8 bytes as a long value.
- getMaxClientReadBuffer() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the currently set max Read buffer size in Bytes.
- getNativeBuffers() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the current state of native buffers.
- getOpenTrustManager() - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- getPEMCerts(String) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- getPEMFileCerts(File) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- getPEMFileKey(File) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- getPEMKey(String) - Static method in class org.threadly.litesockets.utils.SSLUtils
-
- getProtocol() - Method in class org.threadly.litesockets.Client
-
This is used by the
SocketExecuter to help understand how to manage this client.
- getProtocol() - Method in class org.threadly.litesockets.TCPClient
-
- getProtocol() - Method in class org.threadly.litesockets.UDPClient
-
- getRead() - Method in class org.threadly.litesockets.Client
-
- getRead() - Method in class org.threadly.litesockets.TCPClient
-
- getRead() - Method in class org.threadly.litesockets.UDPClient
-
- getReadAllocationSize() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the current Read buffer allocation size in bytes.
- getReadBufferSize() - Method in class org.threadly.litesockets.Client
-
This is used to get the current size of the readBuffers pending reads.
- getReadRate() - Method in class org.threadly.litesockets.utils.SimpleByteStats
-
- getReducedReadAllocations() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the current state of ReducedReadAllocations.
- getRemoteSocketAddress() - Method in class org.threadly.litesockets.Client
-
- getRemoteSocketAddress() - Method in class org.threadly.litesockets.TCPClient
-
- getRemoteSocketAddress() - Method in class org.threadly.litesockets.UDPClient
-
- getSelectableChannel() - Method in class org.threadly.litesockets.TCPServer
-
- getSelectableChannel() - Method in class org.threadly.litesockets.UDPServer
-
- getServerCount() - Method in interface org.threadly.litesockets.SocketExecuter
-
Get the count of
Server from the SocketExecuter.
- getServerType() - Method in class org.threadly.litesockets.Server
-
This is used by the
SocketExecuter to know how to handle this Server
when its added to it.
- getServerType() - Method in class org.threadly.litesockets.TCPServer
-
- getServerType() - Method in class org.threadly.litesockets.UDPServer
-
- getShort() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getShort() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns the next 2 bytes as a short value.
- getSocketExecuter() - Method in class org.threadly.litesockets.Server
-
- getSocketRecvBuffer() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the currently set receive buffer size in bytes.
- getSocketSendBuffer() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the currently set send buffer size in bytes.
- getStats() - Method in class org.threadly.litesockets.Client
-
- getStats() - Method in interface org.threadly.litesockets.SocketExecuter
-
This will give you read and write stats for the SocketExecuter.
- getTcpNoDelay() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the current state of TcpNoDelay.
- getThreadScheduler() - Method in interface org.threadly.litesockets.SocketExecuter
-
This returns the current SubmitterScheduler for this SocketExecuter.
- getTimeout() - Method in class org.threadly.litesockets.Client
-
Used to get this clients connection timeout information.
- getTimeout() - Method in class org.threadly.litesockets.TCPClient
-
- getTimeout() - Method in class org.threadly.litesockets.UDPClient
-
- getTotalConsumedBytes() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getTotalConsumedBytes() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
This will return the number of bytes that has been consumed by this MergedByteBuffer.
- getTotalConsumedBytes() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
-
- getTotalConsumedBytes() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
-
- getTotalPendingReadBytes() - Method in interface org.threadly.litesockets.SocketExecuter
-
Check the total amount of pending reads across all associated clients.
- getTotalPendingWriteBytes() - Method in interface org.threadly.litesockets.SocketExecuter
-
Check the total number of bytes pending to be sent by clients.
- getTotalRead() - Method in class org.threadly.litesockets.utils.SimpleByteStats
-
- getTotalWrite() - Method in class org.threadly.litesockets.utils.SimpleByteStats
-
- getUdpFrameSize() - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Returns the currently set UDP frame size in bytes.
- getUnsignedByte() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getUnsignedByte() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns the next byte unsigned as short stored in the MergedByteBuffers.
- getUnsignedInt() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getUnsignedInt() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns an unsigned short (as an int) from the next 2 stored bytes.
- getUnsignedShort() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
-
- getUnsignedShort() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
-
Returns an unsigned short (as an int) from the next 2 stored bytes.
- getWriteBufferSize() - Method in class org.threadly.litesockets.Client
-
This is used to get the current size of the unWriten writeBuffer.
- getWriteBufferSize() - Method in class org.threadly.litesockets.TCPClient
-
- getWriteBufferSize() - Method in class org.threadly.litesockets.UDPClient
-
- getWriteRate() - Method in class org.threadly.litesockets.utils.SimpleByteStats
-
- select() - Method in class org.threadly.litesockets.NoThreadSocketExecuter
-
This will run all ExecuterTasks, check for pending network operations,
then run those operations.
- select(int) - Method in class org.threadly.litesockets.NoThreadSocketExecuter
-
- select() - Method in class org.threadly.litesockets.SingleThreadSocketExecuter
-
- select(int) - Method in class org.threadly.litesockets.SingleThreadSocketExecuter
-
- SELECT_TIME_MS - Static variable in class org.threadly.litesockets.NoThreadSocketExecuter
-
- Server - Class in org.threadly.litesockets
-
This is the main Server Interface for litesockets.
- Server.ClientAcceptor - Interface in org.threadly.litesockets
-
Used to notify the when a new
Client has been created for a
Server
- Server.ServerCloseListener - Interface in org.threadly.litesockets
-
Used to notify when a
Server connection is closed.
- setClientAcceptor(Server.ClientAcceptor) - Method in class org.threadly.litesockets.Server
-
- setClientAcceptor(Server.ClientAcceptor) - Method in class org.threadly.litesockets.UDPServer
-
- setClientOperations(Client) - Method in class org.threadly.litesockets.NoThreadSocketExecuter
-
- setClientOperations(Client) - Method in interface org.threadly.litesockets.SocketExecuter
-
This is called when the a clients state needs to be rechecked.
- setClientOperations(Client) - Method in class org.threadly.litesockets.ThreadedSocketExecuter
-
- setConnectionTimeout(int) - Method in class org.threadly.litesockets.Client
-
Sets the connection timeout value for this client.
- setConnectionTimeout(int) - Method in class org.threadly.litesockets.TCPClient
-
- setConnectionTimeout(int) - Method in class org.threadly.litesockets.UDPClient
-
- setDirectUdpWrites(boolean) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Set if directWrites are enabled or disabled on this client.
- setDoHandshake(boolean) - Method in class org.threadly.litesockets.TCPServer
-
- setFilterMode(UDPServer.UDPFilterMode) - Method in class org.threadly.litesockets.UDPServer
-
Sets the UDPfilterMode for the server.
- setFrameSize(int) - Method in class org.threadly.litesockets.UDPServer
-
Sets the frame size for this UDPServer.
- setMaxClientReadBuffer(int) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Sets the max size of read buffer the client is allowed to have.
- setNativeBuffers(boolean) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Sets this client to use Native or Direct ByteBuffers.
- setPerConnectionStatsEnabled(boolean) - Method in interface org.threadly.litesockets.SocketExecuter
-
By default per-connection stats will be enabled.
- setReadAllocationSize(int) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Sets the size of the ByteBuffer used for Reads.
- setReader(Client.Reader) - Method in class org.threadly.litesockets.Client
-
This sets the Reader for the client.
- setReducedReadAllocations(boolean) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Sets reduced Read buffer allocations.
- setSocketRecvBuffer(int) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
This sets the System level socket receive buffer size.
- setSocketSendBuffer(int) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
This sets the System level socket send buffer size.
- setSSLContext(SSLContext) - Method in class org.threadly.litesockets.TCPServer
-
- setSSLEngine(SSLEngine) - Method in class org.threadly.litesockets.TCPClient
-
- setSSLHostName(String) - Method in class org.threadly.litesockets.TCPServer
-
- setStatsEnabled(boolean) - Method in class org.threadly.litesockets.Client
-
Can be invoked with false to disable stat collection on client.
- setTcpNoDelay(boolean) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
This is only available for connection backed by a TCP socket.
- setUdpFrameSize(int) - Method in interface org.threadly.litesockets.Client.ClientOptions
-
Sets the UDP frame size.
- setUDPReader(UDPServer.UDPReader) - Method in class org.threadly.litesockets.UDPServer
-
- setUDPServerOperations(UDPServer, boolean) - Method in class org.threadly.litesockets.NoThreadSocketExecuter
-
- setUDPServerOperations(UDPServer, boolean) - Method in interface org.threadly.litesockets.SocketExecuter
-
- setUDPServerOperations(UDPServer, boolean) - Method in class org.threadly.litesockets.ThreadedSocketExecuter
-
- SimpleByteStats - Class in org.threadly.litesockets.utils
-
Simple class for trying byteStats.
- SimpleByteStats() - Constructor for class org.threadly.litesockets.utils.SimpleByteStats
-
- SimpleMergedByteBuffers - Class in org.threadly.litesockets.buffers
-
- SimpleMergedByteBuffers(boolean, ByteBuffer...) - Constructor for class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
-
- SimpleMergedByteBuffers(boolean, SimpleMergedByteBuffers, ByteBuffer...) - Constructor for class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
-
- SingleThreadSocketExecuter - Class in org.threadly.litesockets
-
This is a SingleThreaded implementation of a SocketExecuter.
- SingleThreadSocketExecuter() - Constructor for class org.threadly.litesockets.SingleThreadSocketExecuter
-
Constructs a SingleThreadSocketExecuter.
- SingleThreadSocketExecuter(NoThreadScheduler) - Constructor for class org.threadly.litesockets.SingleThreadSocketExecuter
-
Constructs a SingleThreadSocketExecuter.
- SocketExecuter - Interface in org.threadly.litesockets
-
The main interface used by all SocketExecuter implementations.
- SSL_HANDSHAKE_ERROR - Static variable in class org.threadly.litesockets.utils.SSLUtils
-
- SSLProcessor - Class in org.threadly.litesockets.utils
-
This is a generic SSLClient that can be used to create an encrypted connection to a server.
- SSLProcessor(Client, SSLEngine) - Constructor for class org.threadly.litesockets.utils.SSLProcessor
-
- SSLProcessor.EncryptionException - Exception in org.threadly.litesockets.utils
-
Generic Exception to throw when we get an Encryption error.
- SSLUtils - Class in org.threadly.litesockets.utils
-
Common utilities for SSL connections.
- SSLUtils.FullTrustManager - Class in org.threadly.litesockets.utils
-
This trust manager just trusts everyone and everything.
- start() - Method in class org.threadly.litesockets.Server
-
Tells the Server to start accepting connections.
- start() - Method in class org.threadly.litesockets.UDPServer
-
- startListening(Server) - Method in interface org.threadly.litesockets.SocketExecuter
-
This is used by
Server to tell the SocketExecuter to start allowing new clients to be accepted.
- startListening(Server) - Method in class org.threadly.litesockets.ThreadedSocketExecuter
-
- startSSL() - Method in class org.threadly.litesockets.TCPClient
-
- StartupException - Exception in org.threadly.litesockets
-
This exception in thrown when we have problems doing common operations during startup.
- StartupException(Throwable) - Constructor for exception org.threadly.litesockets.StartupException
-
- stop() - Method in class org.threadly.litesockets.Server
-
Tells the Server to stop accepting connections.
- stop() - Method in class org.threadly.litesockets.UDPServer
-
- stopListening(Server) - Method in interface org.threadly.litesockets.SocketExecuter
-
This will stop tell the executer to stop listening for new connections on the specified
Server.
- stopListening(Server) - Method in class org.threadly.litesockets.ThreadedSocketExecuter
-