summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/RoutingTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/RoutingTable.java')
-rw-r--r--java/src/IceInternal/RoutingTable.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/java/src/IceInternal/RoutingTable.java b/java/src/IceInternal/RoutingTable.java
deleted file mode 100644
index 0b459a0588f..00000000000
--- a/java/src/IceInternal/RoutingTable.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2006 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 final class RoutingTable
-{
- public
- RoutingTable()
- {
- }
-
- //
- // Clear the contents of the routing table.
- //
- synchronized public void
- clear()
- {
- _table.clear();
- }
-
- //
- // Returns false if the Proxy exists already.
- //
- public boolean
- add(Ice.ObjectPrx prx)
- {
- if(prx == null)
- {
- return false;
- }
-
- //
- // We insert the proxy in its default form into the routing table.
- //
- Ice.ObjectPrx proxy = prx.ice_twoway().ice_secure(false);
-
- synchronized(this)
- {
- if(!_table.containsKey(proxy.ice_getIdentity()))
- {
- _table.put(proxy.ice_getIdentity(), proxy);
- return true;
- }
- else
- {
- return false;
- }
- }
- }
-
- private java.util.HashMap _table = new java.util.HashMap();
-}