protected FencedRpcEndpoint(RpcService rpcService, String endpointId) { super(rpcService, endpointId); Preconditions.checkArgument( rpcServer instanceof FencedMainThreadExecutable, "The rpcServer must be of type %s.", FencedMainThreadExecutable.class.getSimpleName()); // no fencing token == no leadership this.fencingToken = null; this.unfencedMainThreadExecutor = new UnfencedMainThreadExecutor((FencedMainThreadExecutable) rpcServer); this.fencedMainThreadExecutor = new MainThreadExecutor( getRpcService().fenceRpcServer( rpcServer, null)); }
protected FencedRpcEndpoint(RpcService rpcService, String endpointId) { super(rpcService, endpointId); Preconditions.checkArgument( rpcServer instanceof FencedMainThreadExecutable, "The rpcServer must be of type %s.", FencedMainThreadExecutable.class.getSimpleName()); // no fencing token == no leadership this.fencingToken = null; this.unfencedMainThreadExecutor = new UnfencedMainThreadExecutor((FencedMainThreadExecutable) rpcServer); this.fencedMainThreadExecutor = new MainThreadExecutor( getRpcService().fenceRpcServer( rpcServer, null)); }
protected FencedRpcEndpoint(RpcService rpcService, String endpointId) { super(rpcService, endpointId); Preconditions.checkArgument( rpcServer instanceof FencedMainThreadExecutable, "The rpcServer must be of type %s.", FencedMainThreadExecutable.class.getSimpleName()); // no fencing token == no leadership this.fencingToken = null; this.unfencedMainThreadExecutor = new UnfencedMainThreadExecutor((FencedMainThreadExecutable) rpcServer); this.fencedMainThreadExecutor = new MainThreadExecutor( getRpcService().fenceRpcServer( rpcServer, null)); }