F - type of the fencing tokenpublic abstract class FencedRpcEndpoint<F extends Serializable> extends RpcEndpoint
RpcEndpoint. A fenced rpc endpoint expects all rpc messages being
enriched with fencing tokens. Furthermore, the rpc endpoint has its own fencing token assigned.
The rpc is then only executed if the attached fencing token equals the endpoint's own token.RpcEndpoint.MainThreadExecutorlog, rpcServer| 限定符 | 构造器和说明 |
|---|---|
protected |
FencedRpcEndpoint(RpcService rpcService,
F fencingToken) |
protected |
FencedRpcEndpoint(RpcService rpcService,
String endpointId,
F fencingToken) |
| 限定符和类型 | 方法和说明 |
|---|---|
F |
getFencingToken() |
callAsync, closeAsync, getAddress, getEndpointId, getHostname, getMainThreadExecutor, getRpcService, getSelfGateway, getTerminationFuture, internalCallOnStart, internalCallOnStop, isRunning, onStart, onStop, registerResource, runAsync, scheduleRunAsync, scheduleRunAsync, start, stop, unregisterResource, validateRunsInMainThreadprotected FencedRpcEndpoint(RpcService rpcService, String endpointId, F fencingToken)
protected FencedRpcEndpoint(RpcService rpcService, F fencingToken)
public F getFencingToken()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.