blob: 5e95363cdb01666e164b00036223ba2984dde153 (
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-2011 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;
//
// This interface is used by the connection to handle OutgoingAsync
// and BatchOutgoingAsync messages.
//
public interface OutgoingAsyncMessageCallback
{
//
// Called by the connection when the message is confirmed sent. The connection is locked
// when this is called so this method can call the sent callback. Instead, this method
// returns true if there's a sent callback and false otherwise. If true is returned, the
// connection will call the __sent() method bellow (which in turn should call the sent
// callback).
//
public abstract boolean __sent(Ice.ConnectionI connection);
//
// Called by the connection to call the user sent callback.
//
public abstract void __sent();
//
// Called by the connection when the request failed. The boolean indicates whether or
// not the message was possibly sent (this is useful for retry to figure out whether
// or not the request can't be retried without breaking at-most-once semantics.)
//
public abstract void __finished(Ice.LocalException ex, boolean sent);
}
|