KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > kernel > IConnectionOverflowHandler


1 package com.ubermq.kernel;
2
3 /**
4  * Extends the functionality of the base overflow handler
5  * to provide more information about the current overflow situation,
6  * including the current message processor and connection
7  * when applicable. <P>
8  *
9  * This allows implementations to take more sophisticated actions
10  * and perform statistical analysis based on remote host,
11  * connection type, etc.
12  */

13 public interface IConnectionOverflowHandler
14     extends IOverflowHandler
15 {
16     /**
17      * Handles an overflow detected by a certain message processor
18      * on a specific connection.
19      * @param d the datagram that was being sent when the overflow
20      * occurred.
21      * @param receiver the connection that was the target of the
22      * <code>output</code> call.
23      * @param messageProcessor the message processor that is calling
24      * this method.
25      */

26     public int overflow(IDatagram d,
27                         IConnectionInfo receiver,
28                         IMessageProcessor messageProcessor);
29 }
30
Popular Tags