diff options
Diffstat (limited to 'java/src/IceInternal/ConnectionBatchOutgoingAsync.java')
-rw-r--r-- | java/src/IceInternal/ConnectionBatchOutgoingAsync.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/java/src/IceInternal/ConnectionBatchOutgoingAsync.java b/java/src/IceInternal/ConnectionBatchOutgoingAsync.java new file mode 100644 index 00000000000..637431baa7b --- /dev/null +++ b/java/src/IceInternal/ConnectionBatchOutgoingAsync.java @@ -0,0 +1,40 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2009 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 class ConnectionBatchOutgoingAsync extends BatchOutgoingAsync +{ + public ConnectionBatchOutgoingAsync(Ice.ConnectionI con, Instance instance, String operation, CallbackBase callback) + { + super(instance, operation, callback); + _connection = con; + } + + public void __send() + { + int status = _connection.flushAsyncBatchRequests(this); + if((status & AsyncStatus.Sent) > 0) + { + _sentSynchronously = true; + if((status & AsyncStatus.InvokeSentCallback) > 0) + { + __sent(); + } + } + } + + @Override + public Ice.Connection getConnection() + { + return _connection; + } + + private Ice.ConnectionI _connection; +} |