Uses of Class
convex.net.Message
Packages that use Message
-
Uses of Message in convex.api
Fields in convex.api with type parameters of type MessageModifier and TypeFieldDescriptionprotected HashMap
<Long, CompletableFuture<Message>> Convex.awaiting
Map of results awaiting completion.Convex.messageHandler
Result Consumer for messages received back from a client connectionMethod parameters in convex.api with type arguments of type MessageModifier and TypeMethodDescriptionvoid
Convex.setHandler
(Consumer<Message> handler) Sets a handler for messages that are received but not otherwise processed (transaction/query results will be relayed instead to the appropriate handler ) -
Uses of Message in convex.net
Fields in convex.net with type parameters of type MessageMethods in convex.net that return MessageModifier and TypeMethodDescriptionstatic Message
Message.create
(Connection conn, MessageType type, Blob data) static Message
Message.create
(MessageType type, ACell payload) static Message
Message.create
(MessageType type, ACell payload, Blob data) static Message
Message.create
(MessageType type, ACell payload, Predicate<Message> handler) Create an instance with the given message datastatic Message
Message.createBelief
(Belief belief) static Message
Message.createBeliefRequest()
Create a Belief request messagestatic Message
Message.createChallenge
(SignedData<ACell> challenge) static Message
Message.createDataRequest
(CVMLong id, Hash... hashes) static Message
Message.createDataResponse
(CVMLong id, ACell... cells) static Message
Message.createGoodBye()
static Message
Message.createResponse
(SignedData<ACell> response) static Message
Message.createResult
(CVMLong id, ACell value, ACell error) static Message
Message.createResult
(Result res) Message.makeDataResponse
(AStore store) Methods in convex.net with parameters of type MessageModifier and TypeMethodDescriptionvoid
boolean
Message.returnMessage
(Message m) Returns a message back to the originator of the message.boolean
Connection.sendMessage
(Message msg) Sends a message over this connectionMethod parameters in convex.net with type arguments of type MessageModifier and TypeMethodDescriptionstatic Connection
Connection.connect
(InetSocketAddress socketAddress, Consumer<Message> receiveAction, AStore store) Create a Connection by connecting to a remote addressstatic Connection
Connection.connect
(InetSocketAddress socketAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey) Create a Connection by connecting to a remote addressstatic Connection
Connection.connect
(InetSocketAddress socketAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey, int sendBufferSize, int receiveBufferSize) Create a Connection by connecting to a remote addressstatic Connection
Connection.create
(ByteChannel channel, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey) Create a PeerConnection using an existing channel.static Message
Message.create
(MessageType type, ACell payload, Predicate<Message> handler) Create an instance with the given message datavoid
Sets an optional additional message receiver hook (for debugging / observability purposes)void
Connection.setReceiveHook
(Consumer<Message> hook) Sets an optional additional message receiver hook (for debugging / observability purposes)Constructor parameters in convex.net with type arguments of type MessageModifierConstructorDescriptionprotected
MessageReceiver
(Consumer<Message> receiveAction, Connection pc) -
Uses of Message in convex.peer
Fields in convex.peer with type parameters of type MessageModifier and TypeFieldDescriptionprotected final ArrayBlockingQueue
<Message> TransactionHandler.txMessageQueue
Queue for incoming (unverified) transaction messagesMethods in convex.peer that return types with arguments of type MessageModifier and TypeMethodDescriptionServer.getReceiveAction()
Gets the action to perform for an incoming client messageMethods in convex.peer with parameters of type MessageModifier and TypeMethodDescriptionvoid
ConnectionManager.alertBadMessage
(Message m, String reason) Called to signal a bad / corrupt message from a Peer.void
ConnectionManager.alertMissing
(Message m, MissingDataException e, AccountKey key) Called to signal missing data in a Belief / Ordervoid
Broadcasts a Message to all connected Peersprotected void
Server.handleDataRequest
(Message m) Respond to a request for missing data, on a best-efforts basis.protected boolean
BeliefPropagator.mergeBeliefMessage
(HashMap<AccountKey, SignedData<Order>> orders, Message m) boolean
QueryHandler.offerQuery
(Message m) Offer a transaction for handlingboolean
TransactionHandler.offerTransaction
(Message m) Offer a transaction for handlingprotected void
Server.processBelief
(Message m) Process an incoming message that represents a Beliefvoid
ConnectionManager.processChallenge
(Message m, Peer thisPeer) protected void
Server.processClose
(Message m) Called by a remote peer to close connections to the remote peer.protected void
Server.processMessage
(Message m) Process a message received from a peer or client.protected void
TransactionHandler.processMessage
(Message m) protected void
Server.processQuery
(Message m) protected void
Server.processResponse
(Message m) protected void
Server.processStatus
(Message m) protected void
Server.processTransact
(Message m) boolean
BeliefPropagator.queueBelief
(Message beliefMessage) Queues a Belief Message for broadcastboolean
Server.queueBelief
(Message event) Adds an event to the inbound server event queue.Method parameters in convex.peer with type arguments of type MessageModifier and TypeMethodDescriptionvoid
Server.setMessageReceiveObserver
(Consumer<Message> observer)