Package | Description |
---|---|
com.solacesystems.solclientj.core |
Entry point into the Solace Java RTO Messaging API (
Solclient ). |
com.solacesystems.solclientj.core.handle |
Handles for wrapping the various concepts managed in the messaging API.
|
Modifier and Type | Method and Description |
---|---|
static MessageHandle |
Solclient.createNewMessageAndHandle()
A convenience factory method that produces a
MessageHandle with an newly allocated message in the handle. |
static MessageHandle |
Solclient.Allocator.newMessageHandle()
Allocates a new
MessageHandle , this is an "unbound" handle that can be used with
Solclient.createMessageForHandle() . |
Modifier and Type | Method and Description |
---|---|
static int |
Solclient.createMessageForHandle(MessageHandle in_out_messageHandle)
Allocate a new message that can be used for storing and sending messages
to and from the Solace Messaging Appliance.
The allocated message will be bound to a given unbound MessageHandle Applications are responsible for releasing all messages allocated by this method, by calling MessageHandle.destroy() |
Modifier and Type | Method and Description |
---|---|
MessageHandle |
MessageSupport.getRxMessage()
This method returns a
MessageHandle reference valid only in the
context of the of MessageCallback.onMessage() . |
Modifier and Type | Method and Description |
---|---|
int |
FlowHandle.ack(MessageHandle messageHandle)
Sends an acknowledgement for a message received over this flow.
|
int |
FlowHandle.receive(MessageHandle in_out_MsgHandle,
int timeout)
Note: This operation is only supported on a Transacted Flow, which must have
been created on a
TransactedSessionHandle |
int |
SessionHandle.send(MessageHandle in_msgHandle)
Sends a message over the session.
|
int |
TransactedSessionHandle.send(MessageHandle msg)
Sends a Guaranteed Delivery message on the specified Transacted Session.
|
int |
SessionHandle.send(MessageHandle[] in_messageHandles,
int offset,
int length,
MutableInteger in_out_howManySent)
Sends an array of messages over the session.
|
int |
SessionHandle.sendReply(MessageHandle in_msgToReplyTo,
MessageHandle in_replyMsg)
Sends a Reply Message.
|
int |
SessionHandle.sendRequest(MessageHandle in_requestMsgHandle,
MessageHandle in_out_replyMsgeHandle,
int timeoutInMsecs)
Sends a Request message for a given Topic.
|
void |
MessageHandle.setCorrelationIdFromMessage(MessageHandle respondToMessageHandle)
This convenience method is a shortcut that allows an application to populate
the CorrelationId of an
MessageHandle r by copying the CorrelationId of
the given MessageHandle. |
void |
MessageHandle.setDestinationFromMessageReplyTo(MessageHandle messageHandle)
This convenience method is a shortcut that allows an application to set
the Destination of an
MessageHandle r by copying the Reply-To of
the given MessageHandle. |
int |
FlowHandle.settle(MessageHandle messageHandle,
int messageOutcome)
Settles a message in a requested way.
|
void |
MessageSupport.takeRxMessage(MessageHandle in_out_messageHandle)
Use this method to make the received message available outside the scope
of
MessageCallback.onMessage() Note: client
applications must call Handle.destroy() on the MessageHandle
reference when they are done with it |
Copyright 2004-2024 Solace Corporation. All rights reserved.