Author: rareddy
Date: 2009-04-01 14:16:01 -0400 (Wed, 01 Apr 2009)
New Revision: 683
Modified:
trunk/client/src/main/java/com/metamatrix/common/comm/platform/socket/client/SocketServerInstanceImpl.java
Log:
TEIID-297: making the default get operation delegate the call to the time unit based get
and wait for the amount of synchronization time
Modified:
trunk/client/src/main/java/com/metamatrix/common/comm/platform/socket/client/SocketServerInstanceImpl.java
===================================================================
---
trunk/client/src/main/java/com/metamatrix/common/comm/platform/socket/client/SocketServerInstanceImpl.java 2009-04-01
13:51:04 UTC (rev 682)
+++
trunk/client/src/main/java/com/metamatrix/common/comm/platform/socket/client/SocketServerInstanceImpl.java 2009-04-01
18:16:01 UTC (rev 683)
@@ -275,9 +275,12 @@
}
@Override
- public synchronized Object get()
- throws InterruptedException, ExecutionException {
- throw new UnsupportedOperationException();
+ public synchronized Object get() throws InterruptedException, ExecutionException {
+ try {
+ return this.get(SocketServerConnectionFactory.getInstance().getSynchronousTtl(),
TimeUnit.MILLISECONDS);
+ } catch (TimeoutException e) {
+ throw new ExecutionException(e);
+ }
}
/**
Show replies by date