Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

AbstractMergedByteBuffers - Class in org.threadly.litesockets.buffers
This class is used to combine multiple ByteBuffers into 1 simplish to use interface.
AbstractMergedByteBuffers() - Constructor for class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
AbstractMergedByteBuffers(boolean) - Constructor for class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
accept(Client) - Method in class org.threadly.litesockets.networkutils.ProfileServer
 
accept(Client) - Method in interface org.threadly.litesockets.Server.ClientAcceptor
This is called when a new Client is added by this Server.
acceptChannel(SelectableChannel) - Method in class org.threadly.litesockets.TCPServer
 
acceptChannel(SelectableChannel) - Method in class org.threadly.litesockets.UDPServer
 
add(byte[]...) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
add(ByteBuffer...) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
add(MergedByteBuffers...) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
add(MergedByteBuffers, int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
add(byte[]...) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
This method allows you to add ByteBuffers to the MergedByteBuffers.
add(ByteBuffer...) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
This method allows you to add ByteBuffers to the MergedByteBuffers.
add(MergedByteBuffers...) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
This method allows you to add a MergedByteBuffers to another MergedByteBuffers.
add(MergedByteBuffers, int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
This method allows you to add a MergedByteBuffers to another MergedByteBuffers.
addCloseListener(Client.ClientCloseListener) - Method in class org.threadly.litesockets.Client
This adds a Client.ClientCloseListener for this client.
addCloseListener(Server.ServerCloseListener) - Method in class org.threadly.litesockets.Server
Adds a Server.ServerCloseListener for this Server.
asInputStream() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
asInputStream() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
 

B

begin() - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
This mark the beginning of a new transaction.
BYTES_IN_INT - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
BYTES_IN_LONG - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
BYTES_IN_SHORT - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 

C

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
This will create a TCPClient on the specified SocketExecuter.
createTCPClient(SocketChannel) - Method in interface org.threadly.litesockets.SocketExecuter
This will create a TCPClient on the specified SocketExecuter with an already created SocketChannel.
createTCPServer(String, int) - Method in interface org.threadly.litesockets.SocketExecuter
This will create a TCPServer on the specified 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
This will create a UDPServer on the specified SocketExecuter.

D

decrypt(ByteBuffer) - Method in class org.threadly.litesockets.utils.SSLProcessor
 
decrypt(MergedByteBuffers) - Method in class org.threadly.litesockets.utils.SSLProcessor
 
DEFAULT_CLIENT_MAX_BUFFER_SIZE - Static variable in class org.threadly.litesockets.utils.IOUtils
Default max buffer size (64k).
DEFAULT_CLIENT_READ_BUFFER_SIZE - Static variable in class org.threadly.litesockets.utils.IOUtils
When we hit the minimum read buffer size we will create a new one of this size (64k).
DEFAULT_FRAME_SIZE - Static variable in class org.threadly.litesockets.UDPServer
 
DEFAULT_MIN_CLIENT_READ_BUFFER_SIZE - Static variable in class org.threadly.litesockets.utils.IOUtils
Minimum allowed readBuffer (4k).
directUdpWrites() - Method in interface org.threadly.litesockets.Client.ClientOptions
Direct writes are used for UDPClients.
disableSNI() - Static method in class org.threadly.litesockets.utils.SSLUtils
Java 7 introduced SNI by default when you establish SSl connections.
discard(int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
discard(int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Discard will drop how ever many bytes you tell it to on the floor.
discard(int) - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
discard(int) - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
discard(int) - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
 
discardFromEnd(int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Similar to MergedByteBuffers.discard(int) except that the bytes removed from this will be from the end of the buffer and discard towards the head.
discardFromEnd(int) - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
discardFromEnd(int) - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
DISCONNECT_DELAY - Static variable in class org.threadly.litesockets.networkutils.ProfileServer
 
doHandShake() - Method in class org.threadly.litesockets.utils.SSLProcessor
You can start the handshake by calling this method.
duplicate() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
duplicate() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Make a complete duplicate of this MergedByteBuffer.
duplicate() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
duplicate() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
duplicateAndClean() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
duplicateAndClean() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
This will flush all the data in this MergedByteBuffer into another MergedByteBuffer.
duplicateAndClean() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
duplicateAndClean() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 

E

EMPTY_BYTE_ARRAY - Static variable in class org.threadly.litesockets.utils.IOUtils
 
EMPTY_BYTEBUFFER - Static variable in class org.threadly.litesockets.utils.IOUtils
Simple empty ByteBuffer to use when passing a ByteBuffer of 0 length.
enableSNI() - Static method in class org.threadly.litesockets.utils.SSLUtils
Java 7 introduced SNI by default when you establish SSl connections.
encrypt(ByteBuffer) - Method in class org.threadly.litesockets.utils.SSLProcessor
 
encrypt(MergedByteBuffers) - Method in class org.threadly.litesockets.utils.SSLProcessor
 
EncryptionException(Throwable) - Constructor for exception org.threadly.litesockets.utils.SSLProcessor.EncryptionException
 
EncryptionException(String) - Constructor for exception org.threadly.litesockets.utils.SSLProcessor.EncryptionException
 
equals(Object) - Method in class org.threadly.litesockets.UDPClient
 
EXTRA_BUFFER_AMOUNT - Static variable in class org.threadly.litesockets.utils.SSLProcessor
 

F

failHandshake(Throwable) - Method in class org.threadly.litesockets.utils.SSLProcessor
 
fileToString(File, int) - Static method in class org.threadly.litesockets.utils.SSLUtils
 
filterHost(InetSocketAddress) - Method in class org.threadly.litesockets.UDPServer
Adds a host to the filter.
findTCPPort() - Static method in class org.threadly.litesockets.utils.PortUtils
Returns an available TCP port.
findUDPPort() - Static method in class org.threadly.litesockets.utils.PortUtils
Returns an available UDP port.
FINISHED_LONG_FUTURE - Static variable in class org.threadly.litesockets.utils.IOUtils
 
FullTrustManager() - Constructor for class org.threadly.litesockets.utils.SSLUtils.FullTrustManager
 

G

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
Gets the current Server.ClientAcceptor Callback for this 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
This is used to get the clients SocketExecuter.
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
Whenever a the Client.Reader Interfaces Client.Reader.onRead(Client) is called the Client.getRead() should be called from the 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
Gets the Current SocketExecuter this Server is assigned to.
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
Returns the SimpleByteStats for this 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
 

H

handShakeStarted() - Method in class org.threadly.litesockets.utils.SSLProcessor
 
hasConnectionTimedOut() - Method in class org.threadly.litesockets.Client
This tells us if the client has timed out before it has been connected to the socket.
hasConnectionTimedOut() - Method in class org.threadly.litesockets.TCPClient
 
hasConnectionTimedOut() - Method in class org.threadly.litesockets.UDPClient
 
hashCode() - Method in class org.threadly.litesockets.UDPClient
 
hasRemaining() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
hasRemaining() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Returns if there is any data pending in this MergedByteBuffer or not.
hasRemaining() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
hasRemaining() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 

I

indexOf(String) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(String, int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(String, Charset) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(String, Charset, int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(byte[]) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(byte[], int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
indexOf(String) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
indexOf(String, Charset) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
indexOf(byte[]) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
indexOf(String, int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
indexOf(String, Charset, int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
indexOf(byte[], int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Like the indexOf in String object this find a pattern of bytes and reports the position they start at.
IOUtils - Class in org.threadly.litesockets.utils
SimpleUtil functions for IO operations.
IOUtils.ClientInputStream - Class in org.threadly.litesockets.utils
This creates an InputStream from a client.
IOUtils.ClientOutputStream - Class in org.threadly.litesockets.utils
This creates an OutputStream from a client.
isAppendable() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
isAppendable() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
isAppendable() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
isAppendable() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
isClosed() - Method in class org.threadly.litesockets.Client
Returns if this client is closed or not.
isClosed() - Method in class org.threadly.litesockets.Server
Tells you if this sever objects Listen port is still open or not.
isClosed() - Method in class org.threadly.litesockets.UDPClient
 
isEncrypted() - Method in class org.threadly.litesockets.TCPClient
 
isEncrypted() - Method in class org.threadly.litesockets.utils.SSLProcessor
This lets you know if the connection is currently encrypted or not.

L

lastWriteFuture() - Method in class org.threadly.litesockets.Client
 
lastWriteFuture() - Method in class org.threadly.litesockets.TCPClient
 
lastWriteFuture() - Method in class org.threadly.litesockets.UDPClient
 

M

MAX_PEM_FILE_SIZE - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
MergedByteBuffers - Interface in org.threadly.litesockets.buffers
This class is used to combine multiple ByteBuffers into 1 simplish to use interface.

N

nextBufferSize() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
nextBufferSize() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Get the size of the next full ByteBuffer in the queue.
nextBufferSize() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
nextBufferSize() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
NoThreadSocketExecuter - Class in org.threadly.litesockets
The NoThreadSocketExecuter is a simpler implementation of a SocketExecuter that does not create any threads.
NoThreadSocketExecuter() - Constructor for class org.threadly.litesockets.NoThreadSocketExecuter
Constructs a NoThreadSocketExecuter.
NoThreadSocketExecuter(NoThreadScheduler) - Constructor for class org.threadly.litesockets.NoThreadSocketExecuter
Constructs a NoThreadSocketExecuter.

O

onClose(Client) - Method in interface org.threadly.litesockets.Client.ClientCloseListener
This notifies the callback about the client being closed.
onClose(Client) - Method in class org.threadly.litesockets.networkutils.ProfileServer
 
onClose(Server) - Method in interface org.threadly.litesockets.Server.ServerCloseListener
Invoked once the provided server has been detected to be in a closed state.
onCloseWithError(Client, Throwable) - Method in interface org.threadly.litesockets.Client.ClientCloseListener
This notifies the callback about the client being closed due to an exception.
onCloseWithError(Client, Throwable) - Method in class org.threadly.litesockets.networkutils.ProfileServer
 
onCloseWithError(Server, Throwable) - Method in interface org.threadly.litesockets.Server.ServerCloseListener
Invoked once the provided server has been closed due to an error.
onRead(Client) - Method in interface org.threadly.litesockets.Client.Reader
When this callback is called it will pass you the Client object that did the read.
onRead(Client) - Method in class org.threadly.litesockets.networkutils.ProfileServer
 
onUDPRead(ByteBuffer, InetSocketAddress) - Method in interface org.threadly.litesockets.UDPServer.UDPReader
This is called whenever the UDPServer reads data from the socket.
OPEN_SSL_CTX - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
org.threadly.litesockets - package org.threadly.litesockets
 
org.threadly.litesockets.buffers - package org.threadly.litesockets.buffers
 
org.threadly.litesockets.networkutils - package org.threadly.litesockets.networkutils
 
org.threadly.litesockets.utils - package org.threadly.litesockets.utils
 

P

PEM_CERT_END - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
PEM_CERT_START - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
PEM_KEY_END - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
PEM_KEY_START - Static variable in class org.threadly.litesockets.utils.SSLUtils
 
popBuffer() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
popBuffer() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Get the next Complete ByteBuffer in its entirety.
popBuffer() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
popBuffer() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
PortUtils - Class in org.threadly.litesockets.utils
Simple helper functions for dealing with ports.
PREALLOCATE_BUFFER_MULTIPLIER - Static variable in class org.threadly.litesockets.utils.SSLProcessor
This is how much extra buffer we allocate for read events so we do quite as much allocating.
ProfileServer - Class in org.threadly.litesockets.networkutils
The ProfileServer Uses Threadly's Profiler tying it to a listen socket to make it easy to profile running java processes as needed.
ProfileServer(SocketExecuter, String, int, int) - Constructor for class org.threadly.litesockets.networkutils.ProfileServer
Constructs a ProileServer.
pullBuffer(int) - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
pullBuffer(int) - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
pullBuffer(int) - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
pullBuffer(int) - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
pullBuffer(int) - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
 

R

read(byte[], int, int) - Method in class org.threadly.litesockets.utils.IOUtils.ClientInputStream
 
read() - Method in class org.threadly.litesockets.utils.IOUtils.ClientInputStream
 
remaining() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
remaining() - Method in interface org.threadly.litesockets.buffers.MergedByteBuffers
Check how much data is available in the MergedByteBuffer.
remaining() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
remaining() - Method in class org.threadly.litesockets.buffers.SimpleMergedByteBuffers
 
resetStats() - Method in class org.threadly.litesockets.utils.SimpleByteStats
Resets all stats.
ReuseableMergedByteBuffers - Class in org.threadly.litesockets.buffers
This class is used to combine multiple ByteBuffers into 1 simplish to use interface.
ReuseableMergedByteBuffers() - Constructor for class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
ReuseableMergedByteBuffers(boolean) - Constructor for class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
ReuseableMergedByteBuffers(boolean, ByteBuffer...) - Constructor for class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
rollback() - Method in class org.threadly.litesockets.buffers.TransactionalByteBuffers
This allows you to roll back all operations done on the consolidator since the begin was called.

S

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
This is the same as the NoThreadSocketExecuter.select() but it allows you to set a delay.
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
Set the Server.ClientAcceptor for this 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
Sets a UDPServer.UDPReader for this server.
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
This is a lower overhead Implementation of MergedByteBuffers.
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
 

T

TCPClient - Class in org.threadly.litesockets
A Simple TCP client.
TCPServer - Class in org.threadly.litesockets
A Simple TCP server.
ThreadedSocketExecuter - Class in org.threadly.litesockets
This is a multiThreaded Implementation of a SocketExecuter.
ThreadedSocketExecuter() - Constructor for class org.threadly.litesockets.ThreadedSocketExecuter
This constructor creates its own SingleThreadScheduler Threadpool to use for client operations.
ThreadedSocketExecuter(ScheduledExecutorService) - Constructor for class org.threadly.litesockets.ThreadedSocketExecuter
This is provided to allow people to use java's generic threadpool scheduler ScheduledExecutorService.
ThreadedSocketExecuter(SubmitterScheduler) - Constructor for class org.threadly.litesockets.ThreadedSocketExecuter
Here you can provide a SubmitterScheduler for this SocketExecuter.
ThreadedSocketExecuter(SubmitterScheduler, int) - Constructor for class org.threadly.litesockets.ThreadedSocketExecuter
Creates a ThreadedSocketExecuter with different max task cycle.
ThreadedSocketExecuter(SubmitterScheduler, int, int) - Constructor for class org.threadly.litesockets.ThreadedSocketExecuter
Creates a ThreadedSocketExecuter with different max task cycle and Selector Thread defaults.
toString() - Method in class org.threadly.litesockets.buffers.AbstractMergedByteBuffers
 
toString() - Method in class org.threadly.litesockets.buffers.ReuseableMergedByteBuffers
 
toString() - Method in class org.threadly.litesockets.TCPClient
 
toString() - Method in class org.threadly.litesockets.UDPClient
 
TransactionalByteBuffers - Class in org.threadly.litesockets.buffers
This allows you to used MergedByteBuffers in a transactional way.
TransactionalByteBuffers() - Constructor for class org.threadly.litesockets.buffers.TransactionalByteBuffers
 
TransactionalByteBuffers(boolean) - Constructor for class org.threadly.litesockets.buffers.TransactionalByteBuffers
 

U

UDPClient - Class in org.threadly.litesockets
A Client representation of a UDP connection.
UDPServer - Class in org.threadly.litesockets
A Simple UDP Server.
UDPServer.UDPFilterMode - Enum in org.threadly.litesockets
UDPFilter enum.
UDPServer.UDPReader - Interface in org.threadly.litesockets
The UDPServer UDPReader.
UNSIGNED_BYTE_MASK - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
UNSIGNED_INT_MASK - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 
UNSIGNED_SHORT_MASK - Static variable in interface org.threadly.litesockets.buffers.MergedByteBuffers
 

V

valueOf(String) - Static method in enum org.threadly.litesockets.UDPServer.UDPFilterMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.threadly.litesockets.WireProtocol
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.threadly.litesockets.UDPServer.UDPFilterMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.threadly.litesockets.WireProtocol
Returns an array containing the constants of this enum type, in the order they are declared.

W

wakeup() - Method in class org.threadly.litesockets.NoThreadSocketExecuter
This is used to wakeup the Selector assuming it was called with a timeout on it.
watchFuture(ListenableFuture<?>, long) - Method in interface org.threadly.litesockets.SocketExecuter
This allows you to put a timer on a ListenableFuture.
WireProtocol - Enum in org.threadly.litesockets
Wire protocols supported by litesockets.
write(ByteBuffer) - Method in class org.threadly.litesockets.Client
This is called to write data to the clients socket.
write(MergedByteBuffers) - Method in class org.threadly.litesockets.Client
This is called to write data to the clients socket.
write(ByteBuffer) - Method in class org.threadly.litesockets.TCPClient
 
write(MergedByteBuffers) - Method in class org.threadly.litesockets.TCPClient
 
write(ByteBuffer) - Method in class org.threadly.litesockets.UDPClient
 
write(MergedByteBuffers) - Method in class org.threadly.litesockets.UDPClient
 
write(ByteBuffer, InetSocketAddress) - Method in class org.threadly.litesockets.UDPServer
Allows you to write to the UDPServer directly without a UDPClient.
write(byte[], int, int) - Method in class org.threadly.litesockets.utils.IOUtils.ClientOutputStream
 
write(int) - Method in class org.threadly.litesockets.utils.IOUtils.ClientOutputStream
 
writeDirect(ByteBuffer, InetSocketAddress) - Method in class org.threadly.litesockets.UDPServer
Write the buffer immediately to the channel.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links