public interface MessageHandler
public Response handle(Principal, Message) throws FabricExceptionand there is one such method for each message type that can be handled.
AbortTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, AbortTransactionMessage msg) throws AccessException
AccessException
AllocateMessage.Response handle(RemoteIdentity<RemoteWorker> client, AllocateMessage msg) throws ProtocolError, AccessException
ProtocolError
AccessException
CommitTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, CommitTransactionMessage msg) throws TransactionCommitFailedException
TransactionCommitFailedException
DissemReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DissemReadMessage msg) throws ProtocolError, AccessException
ProtocolError
AccessException
GetCertChainMessage.Response handle(RemoteIdentity<RemoteWorker> client, GetCertChainMessage msg) throws ProtocolError
ProtocolError
PrepareTransactionMessage.Response handle(RemoteIdentity<RemoteWorker> client, PrepareTransactionMessage msg) throws TransactionPrepareFailedException
ReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, ReadMessage msg) throws ProtocolError, AccessException
ProtocolError
AccessException
MakePrincipalMessage.Response handle(RemoteIdentity<RemoteWorker> client, MakePrincipalMessage msg) throws ProtocolError, FabricGeneralSecurityException
StalenessCheckMessage.Response handle(RemoteIdentity<RemoteWorker> client, StalenessCheckMessage msg) throws ProtocolError, AccessException
ProtocolError
AccessException
ObjectUpdateMessage.Response handle(RemoteIdentity<RemoteWorker> client, ObjectUpdateMessage msg) throws ProtocolError
ProtocolError
DirtyReadMessage.Response handle(RemoteIdentity<RemoteWorker> client, DirtyReadMessage msg) throws ProtocolError, AccessException
ProtocolError
AccessException
RemoteCallMessage.Response handle(RemoteIdentity<RemoteWorker> client, RemoteCallMessage msg) throws ProtocolError, RemoteCallException
ProtocolError
RemoteCallException
TakeOwnershipMessage.Response handle(RemoteIdentity<RemoteWorker> client, TakeOwnershipMessage msg) throws ProtocolError, TakeOwnershipFailedException
InterWorkerStalenessMessage.Response handle(RemoteIdentity<RemoteWorker> client, InterWorkerStalenessMessage msg) throws ProtocolError
ProtocolError