blob: 6c2259b35bef7931637a6e358cabec62969c032b (
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
39
40
41
42
43
44
45
46
47
48
49
|
// **********************************************************************
//
// 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;
//
// This interface is used by the connection to handle OutgoingAsync
// and BatchOutgoingAsync messages.
//
public interface OutgoingAsyncMessageCallback
{
//
// Called by the request handler to send the request over the connection.
//
int __send(Ice.ConnectionI conection, boolean compress, boolean response)
throws RetryException;
int __invokeCollocated(CollocatedRequestHandler handler);
//
// 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 __invokeSent() method bellow (which in turn should call the
// sent callback).
//
boolean __sent();
//
// Called by the connection to call the user sent callback.
//
void __invokeSent();
//
// Called by the connection when the request failed.
//
void __finished(Ice.Exception ex);
//
// Helper to dispatch the cancellation exception.
//
void __dispatchInvocationCancel(Ice.LocalException ex, ThreadPool threadPool, Ice.Connection connection);
}
|