List of usage examples for org.apache.hadoop.io.retry RetryPolicies RETRY_FOREVER
RetryPolicy RETRY_FOREVER
To view the source code for org.apache.hadoop.io.retry RetryPolicies RETRY_FOREVER.
Click Source Link
Keep trying forever.
From source file:rpc.TestRPC.java
License:Apache License
@Test public void testWrappedStopProxy() throws IOException { StoppedProtocol wrappedProxy = RPC.getProxy(StoppedProtocol.class, StoppedProtocol.versionID, null, conf); StoppedInvocationHandler invocationHandler = (StoppedInvocationHandler) Proxy .getInvocationHandler(wrappedProxy); StoppedProtocol proxy = (StoppedProtocol) RetryProxy.create(StoppedProtocol.class, wrappedProxy, RetryPolicies.RETRY_FOREVER); assertEquals(0, invocationHandler.getCloseCalled()); RPC.stopProxy(proxy);/* w ww. ja v a 2 s . com*/ assertEquals(1, invocationHandler.getCloseCalled()); }