de.netseeker.ejoe.core
Interface ChannelRegistrar

All Known Implementing Classes:
CombinedConnectionProcessor

public interface ChannelRegistrar

Author:
netseeker

Method Summary
 int getLoad()
          Returns the amount of currently queued network events for processing
 boolean isValid()
          Tells whether this ChannelRegistrar is running and accepting channels for further processing
 void register(ConnectionHeader receiverInfo, int interest)
          (Re-)Adds a incomplete read channel to the list of channels processed by the Selector of this ChannelRegistrar
 

Method Detail

register

void register(ConnectionHeader receiverInfo,
              int interest)
(Re-)Adds a incomplete read channel to the list of channels processed by the Selector of this ChannelRegistrar

Parameters:
receiverInfo - the ConnectionHeader initially sent by the receiver
interest - OP_WRITE or OP_READ interest

isValid

boolean isValid()
Tells whether this ChannelRegistrar is running and accepting channels for further processing

Returns:
true if this ChannelRegistrar is running and accepting channels for further processing otherwise false

getLoad

int getLoad()
Returns the amount of currently queued network events for processing

Returns:
the amount of currently queued network events for processing


Copyright © 2005-2007 netseeker. All Rights Reserved.