Contents
namespace solace.SolclientFactory
A singleton used as the main factory for the messaging APIs. The very first operation by any application must be to initialize the API:
SolclientFactory provides methods to construct:
Additionally SolclientFactory manages the logging level in the API.
Static Methods Top
solace.Destination | createDurableQueueDestination ( String queueName ) | |
solace.Message | createMessage ( ) | |
solace.ReplayStartLocation | createReplayStartLocationBeginning ( ) | |
solace.ReplayStartLocation | createReplayStartLocationDate ( Date dateTime ) | |
solace.ReplicationGroupMessageId | createReplicationGroupMessageId ( string id ) | |
solace.Session | createSession ( solace.SessionProperties sessionProperties, solace.MessageRxCBInfo messageCallbackInfo, solace.SessionEventCBInfo eventCallbackInfo ) | |
solace.Destination | createTopicDestination ( String topicName ) | |
solace.LogLevel | getLogLevel ( ) | |
solace.SolclientFactory | init ( solace.SolclientFactoryProperties factoryProps ) | |
void | setLogLevel ( solace.LogLevel newLevel ) |
Static Methods Detail Top
Creates a durable queue solace.Destination instance. When the returned Destination is set as the destination of a message via solace.Message#setDestination, the message will be delivered to the Guaranteed Message queue on the Solace Message Router of the same name.
Since 10.0.0
Creates a solace.Message instance.
Creates a ReplayStartLocation solace.ReplayStartLocation instance that when set in MessageConsumerProperties indicates that all messages available in the replay log should be retrieved.
Creates a ReplayStartLocation solace.ReplayStartLocation instance that when set in MessageConsumerProperties indicates that only messages spooled in the replay log since the given Date should be retrieved.
Creates a solace.ReplicationGroupMessageId instance from string. A ReplicationGroupMessageId is also a solace.ReplayStartLocation instance that when set in MessageConsumerProperties indicates that only messages spooled in the replay log since the message after the given ReplicationGroupMesageId should be replayed.
static
public
solace.Session
createSession
( solace.SessionProperties sessionProperties, solace.MessageRxCBInfo messageCallbackInfo, solace.SessionEventCBInfo eventCallbackInfo )
Creates a session instance.
Creates a topic solace.Destination instance. When the returned Destination is set as the destination of a message via solace.Message#setDestination, the message will be delivered to direct subscribers or topic endpoints subscribed to the given topic.
Gets the current log level, which was set by solace.SolclientFactory.init or a subsequent call to solace.SolclientFactory.setLogLevel.
Initialize global properties. This function must be called before any other API call is made.
Note: After the first call to this method, subsequent calls have no effect.
This method changes the current log level from the level set when solace.SolclientFactory.init was called.