summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/CallbackBase.java
blob: 13c9e40f708c361e1ecf14f9551b7c9c2a6b5b58 (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
// **********************************************************************
//
// 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 CallbackBase
{
    public abstract void __completed(Ice.AsyncResult r);
    public abstract void __sent(Ice.AsyncResult r);
    public abstract boolean __hasSentCallback();

    public static void check(boolean cb)
    {
        if(!cb)
        {
            throw new IllegalArgumentException("callback cannot be null");
        }
    }
}