summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/RoutableReference.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-03-06 10:13:42 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-03-06 10:13:42 +0100
commitc6dbd090d9691cc0116a2967b2827b858b184dfe (patch)
tree6d2ad80c98665c9090b16f97c400ab4b33c7ab73 /java/src/IceInternal/RoutableReference.java
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-c6dbd090d9691cc0116a2967b2827b858b184dfe.tar.bz2
ice-c6dbd090d9691cc0116a2967b2827b858b184dfe.tar.xz
ice-c6dbd090d9691cc0116a2967b2827b858b184dfe.zip
Removed thread-per-connection and added serialize mode
Diffstat (limited to 'java/src/IceInternal/RoutableReference.java')
-rw-r--r--java/src/IceInternal/RoutableReference.java36
1 files changed, 5 insertions, 31 deletions
diff --git a/java/src/IceInternal/RoutableReference.java b/java/src/IceInternal/RoutableReference.java
index 0b89530575f..a16fffe72c6 100644
--- a/java/src/IceInternal/RoutableReference.java
+++ b/java/src/IceInternal/RoutableReference.java
@@ -59,12 +59,6 @@ public class RoutableReference extends Reference
return _endpointSelection;
}
- public final boolean
- getThreadPerConnection()
- {
- return _threadPerConnection;
- }
-
public final int
getLocatorCacheTimeout()
{
@@ -189,18 +183,6 @@ public class RoutableReference extends Reference
}
public Reference
- changeThreadPerConnection(boolean newTpc)
- {
- if(newTpc == _threadPerConnection)
- {
- return this;
- }
- RoutableReference r = (RoutableReference)getInstance().referenceFactory().copy(this);
- r._threadPerConnection = newTpc;
- return r;
- }
-
- public Reference
changeLocatorCacheTimeout(int newTimeout)
{
if(_locatorCacheTimeout == newTimeout)
@@ -390,10 +372,6 @@ public class RoutableReference extends Reference
{
return false;
}
- if(_threadPerConnection != rhs._threadPerConnection)
- {
- return false;
- }
if(_locatorCacheTimeout != rhs._locatorCacheTimeout)
{
return false;
@@ -618,7 +596,6 @@ public class RoutableReference extends Reference
boolean cacheConnection,
boolean prefereSecure,
Ice.EndpointSelectionType endpointSelection,
- boolean threadPerConnection,
int locatorCacheTimeout)
{
super(instance, communicator, identity, context, facet, mode, secure);
@@ -630,7 +607,6 @@ public class RoutableReference extends Reference
_cacheConnection = cacheConnection;
_preferSecure = prefereSecure;
_endpointSelection = endpointSelection;
- _threadPerConnection = threadPerConnection;
_locatorCacheTimeout = locatorCacheTimeout;
_overrideTimeout = false;
_timeout = -1;
@@ -798,7 +774,7 @@ public class RoutableReference extends Reference
// Get an existing connection or create one if there's no
// existing connection to one of the given endpoints.
//
- connection = factory.create(endpoints, false, _threadPerConnection, getEndpointSelection(), compress);
+ connection = factory.create(endpoints, false, getEndpointSelection(), compress);
}
else
{
@@ -818,8 +794,7 @@ public class RoutableReference extends Reference
{
endpoint[0] = endpoints[i];
final boolean more = i != endpoints.length - 1;
- connection = factory.create(endpoint, more, _threadPerConnection, getEndpointSelection(),
- compress);
+ connection = factory.create(endpoint, more, getEndpointSelection(), compress);
break;
}
catch(Ice.LocalException ex)
@@ -870,7 +845,7 @@ public class RoutableReference extends Reference
// Get an existing connection or create one if there's no
// existing connection to one of the given endpoints.
//
- factory.create(endpoints, false, _threadPerConnection, getEndpointSelection(),
+ factory.create(endpoints, false, getEndpointSelection(),
new OutgoingConnectionFactory.CreateConnectionCallback()
{
public void
@@ -905,7 +880,7 @@ public class RoutableReference extends Reference
// connection for one of the endpoints.
//
- factory.create(new EndpointI[]{ endpoints[0] }, true, _threadPerConnection, getEndpointSelection(),
+ factory.create(new EndpointI[]{ endpoints[0] }, true, getEndpointSelection(),
new OutgoingConnectionFactory.CreateConnectionCallback()
{
public void
@@ -939,7 +914,7 @@ public class RoutableReference extends Reference
final boolean more = _i != endpoints.length - 1;
final EndpointI[] endpoint = new EndpointI[]{ endpoints[_i] };
- factory.create(endpoint, more, _threadPerConnection, getEndpointSelection(), this);
+ factory.create(endpoint, more, getEndpointSelection(), this);
}
private int _i = 0;
@@ -1003,7 +978,6 @@ public class RoutableReference extends Reference
private boolean _cacheConnection;
private boolean _preferSecure;
private Ice.EndpointSelectionType _endpointSelection;
- private boolean _threadPerConnection;
private int _locatorCacheTimeout;
private boolean _overrideTimeout;