protected void runAsyncWithoutFencing ( Runnable runnable ) { if ( rpcServer instanceof FencedMainThreadExecutable ) { ( ( FencedMainThreadExecutable ) rpcServer ) . runAsyncWithoutFencing ( runnable ) ; } else { throw new RuntimeException ( "FencedRpcEndpoint has not been started with a FencedMainThreadExecutable RpcServer." ) ; } }
Run the given runnable in the main thread of the RpcEndpoint without checking the fencing token . This allows to run operations outside of the fencing token scope .