A B C D E F G H I O P Q R S T U W

A

Acceptor - Class in org.indi.reactor
EventHandler for passive connection establishment.
Acceptor(Reactor, EventHandlerFactory, int) - Constructor for class org.indi.reactor.Acceptor
Class Constructor
active - Variable in class org.indi.reactor.OutputQueue
true if data if waiting in the queue to be writen into the channel.

B

BasicQueueHandler - Class in org.indi.reactor
Simple implementation of the QueueHandeler interface
BasicQueueHandler(Queue<Object>) - Constructor for class org.indi.reactor.BasicQueueHandler
Class constructor

C

channel() - Method in interface org.indi.reactor.EventHandler
 
channel - Variable in class org.indi.reactor.SimpleEventHandler
The channel the handler is associated with
channel() - Method in class org.indi.reactor.SimpleEventHandler
 
close() - Method in class org.indi.reactor.OutputQueue
close the channel.
compareTo(TimerHandler) - Method in class org.indi.reactor.TimerHandler
Method implemented as part of the comparable interface to allow an ordering of TimerHandler objects with respect to the expiration date.
Connector - Class in org.indi.reactor
EventHandler for active connection estabishment.
Connector(Reactor, EventHandlerFactory, String, int) - Constructor for class org.indi.reactor.Connector
Class Constructor

D

dead - Variable in class org.indi.reactor.OutputQueue
false until onClose has been called.

E

equals(Object) - Method in class org.indi.reactor.TimerHandler
Equals method overloaded as part of the contract of the comparable interface to allow an ordering of TimerHandler objects with respect to expiration date
EventHandler - Interface in org.indi.reactor
Basic Handler class for IO events.
EventHandlerFactory - Interface in org.indi.reactor
Abstract Factory to create EventHandlers

F

factory - Variable in class org.indi.reactor.Acceptor
The EventHandlerFactory used to produce new EventHandlers for new connections
factory - Variable in class org.indi.reactor.Connector
The EventHandlerFactory used to create new EventHandlers to be associated with the newly created connection

G

getExpirationDate() - Method in class org.indi.reactor.TimerHandler
 
getQueue() - Method in class org.indi.reactor.BasicQueueHandler
 
getQueue() - Method in interface org.indi.reactor.QueueHandler
 

H

handleEvents(long) - Method in class org.indi.reactor.Reactor
Call the methods frequently.

I

isOpen() - Method in class org.indi.reactor.OutputQueue
return whether the channel is open.

O

onAccept() - Method in class org.indi.reactor.Acceptor
Callback method called by the reactor when a new client is ready to be accepted.
onAccept() - Method in interface org.indi.reactor.EventHandler
Called by the reactor whenever a new connection is ready to be accepted (passive connection establishment)
onAccept() - Method in class org.indi.reactor.SimpleEventHandler
 
onAccepted(EventHandler) - Method in class org.indi.reactor.Acceptor
Callbackmethod called after the connection has been established and a new EventHandler has been created and set up to interact with this new conenction
onClose() - Method in interface org.indi.reactor.EventHandler
Called by the reactor when the handler is removed
onClose() - Method in class org.indi.reactor.OutputQueue
Called by the reactor when the channel is deregistered
onClose() - Method in class org.indi.reactor.SimpleEventHandler
 
onConnect() - Method in class org.indi.reactor.Connector
Callback method called by the reactor when the new connection is ready to be established.
onConnect() - Method in interface org.indi.reactor.EventHandler
Called by the reactor whenever a new Connection is ready to be estabished (active connection establishment)
onConnect() - Method in class org.indi.reactor.SimpleEventHandler
 
onConnected(EventHandler) - Method in class org.indi.reactor.Connector
Callback method called when the new connection has been established and a new EvendHandler has be created and associated with it
onRead(Object) - Method in class org.indi.reactor.BasicQueueHandler
 
onRead() - Method in interface org.indi.reactor.EventHandler
Called by the reactor whenever data is ready for reading.
onRead(T) - Method in interface org.indi.reactor.QueueHandler
Called by the reactor whenever an element is found in the queue
onRead() - Method in class org.indi.reactor.SimpleEventHandler
 
onTimer() - Method in class org.indi.reactor.SimpleTimer
Called by the reactor when the delay has passed.
onTimer() - Method in interface org.indi.reactor.TimerCallback
Called by the reactor when a timer expires.
onTimer() - Method in class org.indi.reactor.TimerHandler
Callback method called by the reactor when the timer expires.
onWrite() - Method in interface org.indi.reactor.EventHandler
Called by the reactor whenever a connection is ready for writing
onWrite() - Method in class org.indi.reactor.OutputQueue
Called by the reactor when channel is ready for writing.
onWrite() - Method in class org.indi.reactor.SimpleEventHandler
 
org.indi.reactor - package org.indi.reactor
 
OutputQueue - Class in org.indi.reactor
An Output queue that can filled with as many ByteBuffers as requiered.
OutputQueue(Reactor, SelectableChannel) - Constructor for class org.indi.reactor.OutputQueue
class constructor

P

produce(Reactor, SelectableChannel) - Method in interface org.indi.reactor.EventHandlerFactory
Create a new EventHandler.

Q

queue - Variable in class org.indi.reactor.OutputQueue
The queue containing the ByteBuffers to be written into the channel.
QueueHandler<T> - Interface in org.indi.reactor
A callback handler.

R

Reactor - Class in org.indi.reactor
A simple implementation of the reactor pattern (similar to eventloop /event driven system / event demultiplexer) around the java newIO system.
Reactor() - Constructor for class org.indi.reactor.Reactor
Class constructor
reactor - Variable in class org.indi.reactor.SimpleEventHandler
the reactor the handler is registered with
register(int) - Method in interface org.indi.reactor.EventHandler
Register the handler with the reactor for certain IO events
register(EventHandler, int) - Method in class org.indi.reactor.Reactor
Registers a new IO-EventHandler with the reactor
register(QueueHandler) - Method in class org.indi.reactor.Reactor
Register a new Queue-EventHandler with the reactor
register(TimerHandler) - Method in class org.indi.reactor.Reactor
Register a new Timer-EventHanlder with the reactor
register(int) - Method in class org.indi.reactor.SimpleEventHandler
 
registeredOperations - Variable in class org.indi.reactor.SimpleEventHandler
bitmask of the operation the handler is registered for

S

selector - Variable in class org.indi.reactor.Reactor
The Selector used by the Reactor to listen for IO events
shift(Date, long) - Static method in class org.indi.reactor.SimpleTimer
Shift a given Date object by a certain number of miliseconds
SimpleEventHandler - Class in org.indi.reactor
A minimal implementation of the EventHandler interface.
SimpleEventHandler(Reactor, SelectableChannel) - Constructor for class org.indi.reactor.SimpleEventHandler
class constructor
SimpleTimer - Class in org.indi.reactor
A simplifyed version of the TimerHandler class taking a given delay in miliseconds instead of an expiration Date and a class implementing TimerCallback interface to be called back after the given delay.
SimpleTimer(TimerCallback, long) - Constructor for class org.indi.reactor.SimpleTimer
Class constructor

T

TimerCallback - Interface in org.indi.reactor
A basic callback to be called by a reactor whenever a timer expires.
TimerHandler - Class in org.indi.reactor
A timer class.
TimerHandler(Date) - Constructor for class org.indi.reactor.TimerHandler
Class constructor

U

unregister(EventHandler) - Method in class org.indi.reactor.Reactor
Unregister a IO-EventHandler

W

write(ByteBuffer) - Method in class org.indi.reactor.OutputQueue
Put a new ByteBuffer into the queue.

A B C D E F G H I O P Q R S T U W

Copyright © 2008. All Rights Reserved.