A B C D E G H I K M N O P Q R S T V

A

addChannel(SelectableChannel, int) - Method in interface async.ASyncProvider
Registers the provided SelectableChannel object with this provider.
addEvent(ASyncEvent) - Method in class async.ASync
Enqueues the event so that its run method will be invoked at the earliest convenient moment by the thread running the main loop of this ASync instance.
addEvent(ASyncEvent, long) - Method in class async.ASync
Enqueues the event so that its run method will be invoked at time time_ms by the thread running the main loop of this ASync instance.
addEvent(ASyncEvent) - Method in interface async.ASyncProvider
Enqueues the event so that its run method will be invoked at the earliest convenient moment by the thread running the main loop of this ASync instance.
addEvent(ASyncEvent, long) - Method in interface async.ASyncProvider
Enqueues the event so that its run method will be invoked at time time_ms by the thread running the main loop of this ASync instance.
AddressPortPair - Class in async
A pairing of an IP address and a port number.
AddressPortPair(InetAddress, int) - Constructor for class async.AddressPortPair
Creates a new pairing of an IP address and a port number.
addService(ASyncService) - Method in class async.ASync
 
addService(ASyncService) - Method in interface async.ASyncServiceManager
Adds the provided service to this ASync instance.
async - package async
 
ASync - Class in async
A library for performing all network I/O over a single thread using the New I/O packages of Java.
ASync() - Constructor for class async.ASync
Creates a new ASync instance that is responsible for managing SelectableChannel objects and events belonging to registered ASyncService objects.
async.common - package async.common
 
ASyncEvent - Interface in async
A marker interface for an event to be executed by an ASync instance.
ASyncListener - Interface in async.common
An interface for a listener to be registered with the transport protocol, typically so that a client can be notified of incoming connections, new data, and so forth.
ASyncProvider - Interface in async
The interface through an ASync instance exports its methods to a service.
ASyncService - Interface in async
An interface to be implemented by services that perform I/O through an ASync instance.
ASyncServiceEvent - Interface in async
A marker interface for an event registered under an ASyncService with an ASyncProvider instance.
ASyncServiceInspector - Interface in async
An interface through which a service can inspect what other services are using the ASync instance by finding their respective keys.
ASyncServiceKey - Class in async
An identifier for an ASyncService object.
ASyncServiceKey(String) - Constructor for class async.ASyncServiceKey
The name that identifies this service.
ASyncServiceManager - Interface in async
An interface for managing ASyncService objects with an ASync instance.
ASyncStartedCallback - Interface in async
A callback interface to invoke once an ASync service has started.
asynctcp - package asynctcp
 
ASyncTCP - Class in asynctcp
A library for performing reliable data transfer over TCP.
ASyncTCP() - Constructor for class asynctcp.ASyncTCP
Creates a new ASyncTCP instance to manage locally established TCP/IP connections.
ASyncTCP(int) - Constructor for class asynctcp.ASyncTCP
Creates a new ASyncTCP instance to manage both locally and remotely established TCP/IP connections.
ASyncTCPKey - Class in asynctcp
The ASyncServiceKey implementation for an ASyncTCP service.
ASyncTCPListener - Interface in asynctcp
A callback interface allowing a client of this ASyncTCP instance to be notified of when remote hosts establish new connections.
ASyncTCPMessageHandle - Class in asynctcp
A handle to a Message object either currently or previously enqueued for delivery over TCP.
ASyncTCPMessageQueue - Class in asynctcp
A queue of messages ready to be delivered over a given connection.
ASyncTCPParams - Class in asynctcp
A class containing all parameters used by an ASyncTCP instance.
asyncudp - package asyncudp
 
ASyncUDP - Class in asyncudp
A library for performing unreliable data transfer over UDP without any congestion or flow control.
ASyncUDP() - Constructor for class asyncudp.ASyncUDP
Creates a new ASyncUDP instance to receive UDP/IP datagrams.
ASyncUDP(int) - Constructor for class asyncudp.ASyncUDP
Creates a new ASyncUDP instance to both send and receive UDP/IP datagrams.
ASyncUDPKey - Class in asyncudp
The ASyncServiceKey implementation for an ASyncUDP service.
ASyncUDPListener - Interface in asyncudp
A callback interface allowing a client of this ASyncUDP instance to be notified of when data is received from remote hosts.
ASyncUDPMessageHandle - Class in asyncudp
A handle to a Message object either currently or previously enqueued for delivery over UDP.
ASyncUDPMessageQueue - Class in asyncudp
The queue of messages to be delivered to remote nodes.
ASyncUDPParams - Class in asyncudp
A class containing all parameters used by an ASyncUDP instance.
attach(Object) - Method in class asynctcp.Connection
Attaches the given object to this connection.
attachment() - Method in class asynctcp.Connection
Retrieves the attachment for this connection.

B

bytesReceived(ByteBuffer, Connection, ProcessReadyCallback) - Method in interface asynctcp.ConnectionListener
This callback method is invoked when data is received from the remote node.

C

cancel() - Method in interface async.common.MessageHandle
Cancels the delivery of this message to the remote host, provided that it is still enqueued and is not in the process of being sent or has been sent already.
cancel() - Method in class asynctcp.ASyncTCPMessageHandle
 
cancel() - Method in class asyncudp.ASyncUDPMessageHandle
 
changeStatus(Connection.ConnectionState, Connection.ConnectionState, Connection) - Method in interface asynctcp.ConnectionListener
This callback method is invoked when the state of the connection changes.
compareTo(Object) - Method in class async.ASyncServiceKey
 
Connection - Class in asynctcp
An interface shared by all connections, both locally and remotely established.
Connection.ConnectionState - Enum in asynctcp
An enumeration over all possible connection states.
ConnectionListener - Interface in asynctcp
An common interface for listeners on both incoming and outgoing connections.
ConnectionManager - Class in asynctcp
A class allowing management of connections for an ASyncTCP instance.
containsChannel(SelectableChannel) - Method in interface async.ASyncProvider
Queries whether the provided SelectableChannel object is registered with this provider.
containsService(ASyncService) - Method in class async.ASync
 
containsService(ASyncService) - Method in interface async.ASyncServiceManager
Returns whether the provided service is registered with this ASync instance.
containsServiceKey(ASyncServiceKey) - Method in class async.ASync
 
containsServiceKey(ASyncServiceKey) - Method in interface async.ASyncServiceInspector
Returns whether a service with the provided key is registered with this ASync instance.
copyParams(ASyncTCPParams) - Method in class asynctcp.ASyncTCPParams
Sets all parameter values to those contained in atcpp.
copyParams(ASyncUDPParams) - Method in class asyncudp.ASyncUDPParams
Sets all parameter values to those contained in audpp.

D

DEFAULT_MAX_SEGMENT_SIZE - Static variable in class asyncudp.ASyncUDPParams
 
DEFAULT_RECV_BUFFER_SIZE - Static variable in class asynctcp.ASyncTCPParams
 
DEFAULT_RECV_BUFFER_SIZE - Static variable in class asyncudp.ASyncUDPParams
 
DEFAULT_SEND_BUFFER_SIZE - Static variable in class asynctcp.ASyncTCPParams
 
disconnect() - Method in class asynctcp.Connection
Attempts to close this connection if it is not closing or closed already.

E

enqueue(Message) - Method in interface async.common.MessageQueue
Enqueues the Message argument for delivery to the destination.
enqueue(Message) - Method in class asynctcp.ASyncTCPMessageQueue
 
enqueue(Message) - Method in class asyncudp.ASyncUDPMessageQueue
Enqueues the Message argument for delivery to the provided IP address and port.
enqueue(Message, AddressPortPair) - Method in class asyncudp.QueueManager
Enqueues the Message argument for delivery to the given destination app.
equals(Object) - Method in class async.AddressPortPair
 
equals(Object) - Method in class asyncudp.ASyncUDPMessageQueue
 
eventHappens(ASyncServiceEvent, long) - Method in interface async.ASyncService
This method is invoked if the time the given ASyncServiceEvent was scheduled to execute at has passed.

G

getActiveServiceKeys() - Method in class async.ASync
 
getActiveServiceKeys() - Method in interface async.ASyncServiceInspector
Returns a list of the keys belonging to all active services registered with this ASync instance.
getActiveServices() - Method in class async.ASync
 
getActiveServices() - Method in interface async.ASyncServiceManager
Returns a list of all active services registered with this ASync instance.
getAddress() - Method in class async.AddressPortPair
Returns the IP address in the pairing.
getAllMessageQueues() - Method in class asyncudp.QueueManager
Returns all MessageQueue objects that are either sending or have data enqueued to their respective destination addresses.
getASyncTCP() - Method in class asynctcp.ASyncTCPParams
Returns the ASyncTCP instance that these parameters configure.
getASyncUDP() - Method in class asyncudp.ASyncUDPParams
Returns the ASyncUDP instance that these parameters configure.
getCapacity() - Method in class asynctcp.ASyncTCPMessageQueue
Returns the capacity of the queue; attempting to enqueue a message in a queue whose length meets or exceeds its capacity will fail.
getChannels() - Method in interface async.ASyncProvider
Returns a list containing all SelectableChannel objects registered by the service provided for.
getConnection() - Method in class asynctcp.ASyncTCPMessageHandle
Returns the Connection in which the message is enqueued or currently being sent across.
getConnection() - Method in class asynctcp.ASyncTCPMessageQueue
Returns the Connection object with which this queue is associated.
getConnectionManager() - Method in class asynctcp.ASyncTCP
Returns the ConnectionManager through which incoming and outgoing connections can be managed.
getConnectionManager() - Method in class asynctcp.ASyncTCPKey
Returns the ConnectionManager belonging to the associated ASyncTCP service.
getConnectionState() - Method in class asynctcp.Connection
Returns the current state of this connection.
getDestination() - Method in class asyncudp.ASyncUDPMessageQueue
Returns the address and port to which this message will be delivered.
getEnqueued() - Method in class asynctcp.ASyncTCPMessageQueue
Returns handles to the enqueued messages.
getEnqueued() - Method in class asyncudp.ASyncUDPMessageQueue
Returns handles to the enqueued messages.
getEnqueuedTime() - Method in interface async.common.MessageHandle
Returns the time, in milliseconds, at which this message was enqueued for delivery.
getEnqueuedTime() - Method in class asynctcp.ASyncTCPMessageHandle
 
getEnqueuedTime() - Method in class asyncudp.ASyncUDPMessageHandle
 
getEvents() - Method in interface async.ASyncProvider
Retrieves the heap of events associated with the service provided for.
getInactiveServiceKeys() - Method in class async.ASync
 
getInactiveServiceKeys() - Method in interface async.ASyncServiceInspector
Returns a list of the keys belonging to all inactive services registered with this ASync instance.
getInactiveServices() - Method in class async.ASync
 
getInactiveServices() - Method in interface async.ASyncServiceManager
Returns a list of all inactive services registered with this ASync instance.
getIncomingConnections() - Method in class asynctcp.ConnectionManager
Returns a list containing handles to all ASyncTCP connections established by a remote host.
getKey() - Method in interface async.ASyncService
Returns the ASyncServiceKey object that identifies this service.
getLength() - Method in interface async.common.MessageQueue
Returns the number of messages enqueued to the destination.
getLength() - Method in class asynctcp.ASyncTCPMessageQueue
 
getLength() - Method in class asyncudp.ASyncUDPMessageQueue
Returns the number of messages enqueued to the destination.
getListener() - Method in interface async.common.MessageHandle
Retrieves the listener for this message.
getListener() - Method in class asynctcp.ASyncTCPMessageHandle
 
getListener() - Method in class asynctcp.Connection
Retrieves the listener for this connection.
getListener() - Method in class asynctcp.ConnectionManager
Retrieves the listener for this ASyncTCP instance.
getListener() - Method in class asyncudp.ASyncUDPMessageHandle
 
getListener() - Method in class asyncudp.QueueManager
Retrieves the listener for this ASyncUDP instance.
getMaximumSegmentSize() - Method in class asyncudp.ASyncUDPParams
Returns the maximum size, in bytes, of any UDP datagram that can be sent.
getMessage() - Method in interface async.common.MessageHandle
Returns the message for which this MessageHandle instance is a handle.
getMessage() - Method in class asynctcp.ASyncTCPMessageHandle
 
getMessage() - Method in class asyncudp.ASyncUDPMessageHandle
 
getMessageQueue() - Method in interface async.common.MessageHandle
Returns the message queue in which this message handle is or was once enqueued.
getMessageQueue() - Method in class asynctcp.ASyncTCPMessageHandle
 
getMessageQueue() - Method in class asynctcp.Connection
Returns the MessageQueue object associated with this connection.
getMessageQueue() - Method in class asyncudp.ASyncUDPMessageHandle
 
getMessageQueue(AddressPortPair) - Method in class asyncudp.QueueManager
Returns the MessageQueue object associated with the given destination.
getName() - Method in class async.ASyncServiceKey
Returns the name of this service.
getOutgoingConnections() - Method in class asynctcp.ConnectionManager
Returns a list containing handles to all ASyncTCP connections established by this host.
getParams() - Method in class asynctcp.ASyncTCP
Returns the parameters for this ASyncTCP instance.
getParams() - Method in class asyncudp.ASyncUDP
Returns the parameters for this ASyncUDP instance.
getPort() - Method in class async.AddressPortPair
Returns the port number in the pairing.
getPortNumber() - Method in class asynctcp.ConnectionManager
Returns the port number on which this ASyncTCP instance is listening for new incoming connections.
getPortNumber() - Method in class asyncudp.QueueManager
Returns the port number on which this ASyncUDP instance is listening for new incoming datagrams.
getQueueManager() - Method in class asyncudp.ASyncUDP
Returns the QueueManager through which message queues can be managed.
getQueueManager() - Method in class asyncudp.ASyncUDPKey
Returns the QueueManager belonging to the associated ASyncUDP service.
getQueuePosition() - Method in interface async.common.MessageHandle
Returns the position of this message in whatever queue it belongs to, provided the state of this handle is ENQUEUED.
getQueuePosition() - Method in class asynctcp.ASyncTCPMessageHandle
 
getQueuePosition() - Method in class asyncudp.ASyncUDPMessageHandle
 
getRecvBufferSize() - Method in class asynctcp.ASyncTCPParams
Returns the size, in bytes, of the application-level receive buffer of an incoming connection.
getRecvBufferSize() - Method in class asyncudp.ASyncUDPParams
Returns the size, in bytes, of the application-level receive buffer for the ASyncUDP instance.
getRemoteHost() - Method in class asynctcp.Connection
Returns the IP address and port number at which this connection terminates.
getSendBufferSize() - Method in class asynctcp.ASyncTCPParams
Returns the size, in bytes, of the application-level send buffer of an outgoing connection.
getSending() - Method in interface async.common.MessageQueue
Returns the handle to the message currently being sent.
getSending() - Method in class asynctcp.ASyncTCPMessageQueue
 
getSending() - Method in class asyncudp.ASyncUDPMessageQueue
Returns the handle to the message currently being sent.
getSendingTime() - Method in interface async.common.MessageHandle
Returns the time, in milliseconds, at which this message began sending.
getSendingTime() - Method in class asynctcp.ASyncTCPMessageHandle
 
getSendingTime() - Method in class asyncudp.ASyncUDPMessageHandle
 
getSentTime() - Method in interface async.common.MessageHandle
Returns the time, in milliseconds, at which this message was sent in its entirety.
getSentTime() - Method in class asynctcp.ASyncTCPMessageHandle
 
getSentTime() - Method in class asyncudp.ASyncUDPMessageHandle
 
getService() - Method in interface async.ASyncProvider
Returns the ASyncService that this object provides for.
getService() - Method in class asynctcp.ASyncTCP
Returns the ASyncService required to register with a ASyncProvider instance
getService() - Method in class asyncudp.ASyncUDP
Returns the ASyncService required to register with a ASyncProvider instance
getServiceInspector() - Method in interface async.ASyncProvider
Returns the ASyncServiceInspector, allowing this service to inspect other services running on the system.
getState() - Method in interface async.common.MessageHandle
Returns the state of this message.
getState() - Method in class asynctcp.ASyncTCPMessageHandle
 
getState() - Method in class asyncudp.ASyncUDPMessageHandle
 
getTime() - Method in interface async.ASyncProvider
Returns the current time, in milliseconds.

H

hashCode() - Method in class async.AddressPortPair
 
hashCode() - Method in class asyncudp.ASyncUDPMessageQueue
 

I

IncomingConnection - Class in asynctcp
An interface allowing management of remotely established connections.
isEmpty() - Method in interface async.common.MessageQueue
Returns whether any messages present in this queue.
isEmpty() - Method in class asynctcp.ASyncTCPMessageQueue
 
isEmpty() - Method in class asyncudp.ASyncUDPMessageQueue
Returns whether any messages present in this queue.
isFull() - Method in class asynctcp.ASyncTCPMessageQueue
Returns whether the queue is already at its capacity; if so, any attempts to enqueue new messages will fail until this is not the case.
isLocalConnection() - Method in class asynctcp.Connection
Returns whether this connection was locally or remotely established.
isLocalConnection() - Method in class asynctcp.IncomingConnection
 
isLocalConnection() - Method in class asynctcp.OutgoingConnection
 
isRunning() - Method in class async.ASync
Returns whether another thread is currently running the main loop of this ASync instance.

K

keyAcceptable(SelectionKey, SelectableChannel, long) - Method in interface async.ASyncService
This method is invoked by the ASync instance when a channel registered by this service is acceptable.
keyConnectable(SelectionKey, SelectableChannel, long) - Method in interface async.ASyncService
This method is invoked by the ASync instance when a channel registered by this service is connectable.
keyReadable(SelectionKey, SelectableChannel, long) - Method in interface async.ASyncService
This method is invoked by the ASync instance when a channel registered by this service is readable.
keyWritable(SelectionKey, SelectableChannel, long) - Method in interface async.ASyncService
This method is invoked by the ASync instance when a channel registered by this service is writable.

M

Message - Interface in async.common
A serialization interface for objects that are to be sent over the network by some transport protocol.
MessageHandle - Interface in async.common
A handle to a Message object either currently or previously enqueued for delivery.
MessageHandle.MessageState - Enum in async.common
The state of the Message.
MessageHandleListener - Interface in async.common
A callback interface allowing a client to be notified when the state of a message changes.
MessageQueue - Interface in async.common
A queue of messages to be delivered to some destination.
moveBackward() - Method in interface async.common.MessageHandle
Moves this message one position backward in the queue.
moveBackward() - Method in class asynctcp.ASyncTCPMessageHandle
 
moveBackward() - Method in class asyncudp.ASyncUDPMessageHandle
 
moveForward() - Method in interface async.common.MessageHandle
Moves this message one position forward in the queue.
moveForward() - Method in class asynctcp.ASyncTCPMessageHandle
 
moveForward() - Method in class asyncudp.ASyncUDPMessageHandle
 

N

newConnection(IncomingConnection) - Method in interface asynctcp.ASyncTCPListener
This callback method is invoked when a remote host establishes a new connection to the local host.
newDataReceived(AddressPortPair, ByteBuffer, ProcessReadyCallback) - Method in interface asyncudp.ASyncUDPListener
This callback method is invoked when data is received from a remote host.
nowReady() - Method in interface async.common.ProcessReadyCallback
Notifies the transport protocol that the client is ready to process the buffer; the responding action of the transport protocol depends on the context in which this ProcessReadyCallback object was presented to the client.
nowRunning(ASyncProvider) - Method in interface async.ASyncService
This method is invoked when an ASync instance this service is registered with starts running.
nowRunning() - Method in interface async.common.ASyncListener
This callback method is invoked when this transport protocol is now running.
nowSending(MessageHandle) - Method in interface async.common.MessageHandleListener
This callback method is invoked when the message to which handle mh refers is now sending.
nowSent(MessageHandle) - Method in interface async.common.MessageHandleListener
This callback method is invoked when the message to which handle mh refers is now sent.
nowStarted(ASyncServiceInspector) - Method in interface async.ASyncStartedCallback
This method is invoked once the ASync instance has started.
nowStopped() - Method in interface async.ASyncService
This method is invoked when the provider with which this service is registered and active stops.

O

openConnection(AddressPortPair, long) - Method in class asynctcp.ConnectionManager
Begins establishing a new ASyncTCP connection to a remote host at the specified IP address and port.
OutgoingConnection - Class in asynctcp
An interface allowing management of locally established connections.

P

ProcessReadyCallback - Interface in async.common
An interface through which the client can notify the transport protocol that it is ready for processing a given ByteBuffer.
providerStopped() - Method in interface async.common.ASyncListener
This callback method is invoked when this transport protocol stops running because the ASync instance it is registered with has stopped.

Q

QueueManager - Class in asyncudp
A class allowing management of message queues for an ASyncUDP instance.

R

reconnect(long) - Method in class asynctcp.Connection
If this connection was established locally, meaning isLocalConnection returns true, then this method attempts to reestablish the connection.
reconnect(long) - Method in class asynctcp.IncomingConnection
 
reconnect(long) - Method in class asynctcp.OutgoingConnection
 
removeChannel(SelectableChannel) - Method in interface async.ASyncProvider
De-registers the provided SelectableChannel object with this provider.
removeService(ASyncService) - Method in class async.ASync
 
removeService(ASyncService) - Method in interface async.ASyncServiceManager
Removes the provided service from this ASync instance.
run(ASyncStartedCallback) - Method in class async.ASync
Runs the main loop of this ASync instance.
run(long) - Method in interface async.ASyncEvent
The callback method to invoke when the enqueued event is selected for execution.

S

serialize(ByteBuffer, ProcessReadyCallback) - Method in interface async.common.Message
This method is invoked when the transport protocol is ready to serialize the next part of this message to send it over the network.
serviceStopped() - Method in interface async.common.ASyncListener
This callback method is invoked when this transport protocol instance stops because it has encountered an error with its ASync instance.
setCapacity(int) - Method in class asynctcp.ASyncTCPMessageQueue
Sets the capacity of this queue to the provided non-negative integer new_capacity.
setListener(MessageHandleListener) - Method in interface async.common.MessageHandle
Sets mhl as the listener on this message.
setListener(MessageHandleListener) - Method in class asynctcp.ASyncTCPMessageHandle
 
setListener(ConnectionListener) - Method in class asynctcp.Connection
Sets cl as the listener on this connection.
setListener(ASyncTCPListener) - Method in class asynctcp.ConnectionManager
Sets asl as the listener on this ASyncTCP instance.
setListener(MessageHandleListener) - Method in class asyncudp.ASyncUDPMessageHandle
 
setListener(ASyncUDPListener) - Method in class asyncudp.QueueManager
Sets audpl as the listener on this ASyncUDP instance.
setMaximumSegmentSize(int) - Method in class asyncudp.ASyncUDPParams
Sets the maximum size, in bytes, of any UDP datagram that can be sent.
setRecvBufferSize(int) - Method in class asynctcp.ASyncTCPParams
Sets the size, in bytes, of the application-level receive buffer of an incoming connection.
setRecvBufferSize(int) - Method in class asyncudp.ASyncUDPParams
Sets the size, in bytes, of the application-level receive buffer for the ASyncUDP instance.
setSendBufferSize(int) - Method in class asynctcp.ASyncTCPParams
Sets the size, in bytes, of the application-level send buffer of an outgoing connection.
stop() - Method in class async.ASync
Stops another thread from running the main loop of this ASync instance.

T

toString() - Method in class async.AddressPortPair
 

V

valueOf(String) - Static method in enum async.common.MessageHandle.MessageState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum asynctcp.Connection.ConnectionState
Returns the enum constant of this type with the specified name.
values() - Static method in enum async.common.MessageHandle.MessageState
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum asynctcp.Connection.ConnectionState
Returns an array containing the constants of this enum type, in the order they're declared.

A B C D E G H I K M N O P Q R S T V