summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/EventHandler.java
blob: 5dc747b211899bb9f96ea0903297c7cb29b199cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

package IceInternal;

public abstract class EventHandler
{
    //
    // Called when there's a message ready to be processed.
    //
    abstract public void message(ThreadPoolCurrent current);

    //
    // Called when the event handler is unregistered.
    //
    abstract public void finished(ThreadPoolCurrent current);

    //
    // Get a textual representation of the event handler.
    //
    abstract public String toString();

    //
    // Get the native information of the handler, this is used by the selector.
    //
    abstract public java.nio.channels.SelectableChannel fd();

    public int _disabled = 0;
    public Ice.BooleanHolder _hasMoreData = new Ice.BooleanHolder(false);
    public int _registered = 0;
    public java.nio.channels.SelectionKey _key = null;
}