public static final class Solclient.Allocator
extends java.lang.Object
Note: Objects created from this factory will not allocate native objects
Constructor and Description |
---|
Allocator() |
Modifier and Type | Method and Description |
---|---|
static CacheSessionEvent |
newCacheSessionEvent()
Allocates a new CacheSessionEvent, this instance is to be used with
the
CacheSessionHandle.takeCacheSessionEvent() method. |
static CacheSessionHandle |
newCacheSessionHandle()
Allocates a new
CacheSessionHandle , this is an "unbound" handle that can be used
with
SessionHandle.createCacheSessionForHandle() method to allocate and
"bind" a native resource with this handle. |
static ClientName |
newClientName(java.lang.String clientName)
Creates a representation of
ClientName with the given clientName. |
static ContextHandle |
newContextHandle()
Allocates a new
ContextHandle , this is an "unbound" handle that can be used with
Solclient.createContextForHandle() . |
static FlowEvent |
newFlowEvent()
Allocates a new FlowEvent, this instance is to be used with the
FlowHandle.takeFlowEvent() method. |
static FlowHandle |
newFlowHandle()
Allocates a new
FlowHandle , this is an "unbound" handle that can be used with
SessionHandle.createFlowForHandle()
TransactedSessionHandle.createFlowForHandle()
|
static MessageDispatchTargetHandle |
newMessageDispatchTargetHandle(Subscription subscription,
MessageCallback messageCallback,
boolean isLocalDispatchOnly)
|
static MessageHandle |
newMessageHandle()
Allocates a new
MessageHandle , this is an "unbound" handle that can be used with
Solclient.createMessageForHandle() . |
static MutableMessageDispatchTargetHandle |
newMutableMessageDispatchTargetHandle()
Allocates a new
MessageDispatchTargetHandle |
static MutableTopic |
newMutableTopic()
Creates a representation of a
MutableTopic
destination and allocates an empty name byteBuffer of max-topic-size (250 bytes). |
static MutableTopic |
newMutableTopic(java.nio.ByteBuffer topicNameBuffer)
Creates a representation of a
MutableTopic
destination with the given topicName stored in a ByteBuffer. |
static NativeDestinationHandle |
newNativeDestinationHandle()
Allocates a new
NativeDestinationHandle , this is an "unbound" handle that can be
used with
Solclient.createNativeDestinationForHandle() . |
static Queue |
newQueue(java.lang.String queueName)
Creates a representation of a Durable
Queue
destination with the given queueName but no set
Endpoint.PROPERTIES . |
static Queue |
newQueue(java.lang.String queueName,
java.lang.String[] endpointProperties)
Creates a representation of a Durable
Queue
destination with the given queueName and
Endpoint.PROPERTIES . |
static ReplicationGroupMessageIdHandle |
newReplicationGroupMessageIdHandle()
Allocates a new
ReplicationGroupMessageIdHandle , this is an "unbound" handle that can be
used with
Solclient.createReplicationGroupMessageIdForHandle() . |
static SessionEvent |
newSessionEvent()
Allocates a new SessionEvent, this instance is to be used with the
SessionHandle.takeSessionEvent() method. |
static SessionHandle |
newSessionHandle()
Allocates a new
SessionHandle , this is an "unbound" handle that can be used with
ContextHandle.createSessionForHandle() . |
static Topic |
newTopic(java.lang.String topicName)
Creates a representation of non-temporary
Topic
destination wih the given topicName. |
static TopicEndpoint |
newTopicEndpoint(java.lang.String topicEndpointName)
Creates a representation of Durable Topic Endpoint (DTE)
TopicEndpoint in the API, having the given topicEndpointName, but no
set
Endpoint.PROPERTIES . |
static TopicEndpoint |
newTopicEndpoint(java.lang.String topicEndpointName,
java.lang.String[] endpointProperties)
Creates a representation of Durable Topic Endpoint (DTE)
TopicEndpoint in the API, having the given topicEndpointName and
Endpoint.PROPERTIES . |
static TransactedSessionHandle |
newTransactedSessionHandle()
Allocates a new
TransactedSessionHandle , this is an "unbound" handle that can be
used with
SessionHandle.createTransactedSessionForHandle() method to allocate
and "bind" a native resource with this handle. |
public static Topic newTopic(java.lang.String topicName)
Topic
destination wih the given topicName.topicName
- public static MutableTopic newMutableTopic(java.nio.ByteBuffer topicNameBuffer)
MutableTopic
destination with the given topicName stored in a ByteBuffer.topicNameBuffer
- The topic name is used to initialize the MutableTopic.
The ByteBuffer is not referenced by the MutableTopic after
create and may be used for other purposes.public static MutableTopic newMutableTopic()
MutableTopic
destination and allocates an empty name byteBuffer of max-topic-size (250 bytes).public static Queue newQueue(java.lang.String queueName)
Queue
destination with the given queueName but no set
Endpoint.PROPERTIES
.queueName
- The name of the durable queueSolclient.Allocator.newQueue(String, String[])
public static Queue newQueue(java.lang.String queueName, java.lang.String[] endpointProperties)
Queue
destination with the given queueName and
Endpoint.PROPERTIES
.queueName
- The name of the durable queueendpointProperties
- Endpoint.PROPERTIES
Solclient.Allocator.newQueue(String)
public static TopicEndpoint newTopicEndpoint(java.lang.String topicEndpointName)
TopicEndpoint
in the API, having the given topicEndpointName, but no
set
Endpoint.PROPERTIES
.topicEndpointName
- The name of the durable Topic EndpointSolclient.Allocator.newTopicEndpoint(String, String[])
public static TopicEndpoint newTopicEndpoint(java.lang.String topicEndpointName, java.lang.String[] endpointProperties)
TopicEndpoint
in the API, having the given topicEndpointName and
Endpoint.PROPERTIES
.topicEndpointName
- The name of the durable Topic EndpointendpointProperties
- Endpoint.PROPERTIES
Solclient.Allocator.newTopicEndpoint(String)
public static ClientName newClientName(java.lang.String clientName)
ClientName
with the given clientName.clientName
- ClientName
public static SessionHandle newSessionHandle()
SessionHandle
, this is an "unbound" handle that can be used with
ContextHandle.createSessionForHandle()
.public static ContextHandle newContextHandle()
ContextHandle
, this is an "unbound" handle that can be used with
Solclient.createContextForHandle()
.public static MessageHandle newMessageHandle()
MessageHandle
, this is an "unbound" handle that can be used with
Solclient.createMessageForHandle()
.public static NativeDestinationHandle newNativeDestinationHandle()
NativeDestinationHandle
, this is an "unbound" handle that can be
used with
Solclient.createNativeDestinationForHandle()
.public static MessageDispatchTargetHandle newMessageDispatchTargetHandle(Subscription subscription, MessageCallback messageCallback, boolean isLocalDispatchOnly)
MessageDispatchTargetHandle
for the given
Subscription
having a
MessageCallback
.
The allocated MessageDispatchTargetHandle is used to create a
subscription entry in the API by calling
SessionHandle.subscribe()
or
FlowHandle.subscribe()
.
A MessageDispatchTargetHandle
includes the
Local Dispatch Only attribute. By setting this attribute, the Subscription
is not sent
to the appliance and exists
only in the local API dispatch table. This can serve to reduce the resource use on the appliance
in the network of appliances.
For this to have any affect at all, an encompassing Subscription
must be
set on the appliance. For example, an application could send the subscription /foo/>
to the appliance and this
subscription will be propogated through the network. Then the application could add
'Local Dispatch Only' subscriptions for /foo/1
, /foo/2
, and
/foo/3
. Messages on
all these topics would be delivered to the application due to the wild card
subscription. They would then
be dispatched to the individual MessageDispatchTargetHandle
by the Local Dispatch
Only entries.
subscription
- messageCallback
- isLocalDispatchOnly
- indicates if this Dispatch target is for Local delivery
only.public static MutableMessageDispatchTargetHandle newMutableMessageDispatchTargetHandle()
MessageDispatchTargetHandle
The allocated MessageDispatchTargetHandle is used to create a
subscription entry in the API by calling
SessionHandle.subscribe()
or
FlowHandle.subscribe()
.
public static FlowHandle newFlowHandle()
FlowHandle
, this is an "unbound" handle that can be used with
public static TransactedSessionHandle newTransactedSessionHandle()
TransactedSessionHandle
, this is an "unbound" handle that can be
used with
SessionHandle.createTransactedSessionForHandle()
method to allocate
and "bind" a native resource with this handle.public static CacheSessionHandle newCacheSessionHandle()
CacheSessionHandle
, this is an "unbound" handle that can be used
with
SessionHandle.createCacheSessionForHandle()
method to allocate and
"bind" a native resource with this handle.public static SessionEvent newSessionEvent()
SessionHandle.takeSessionEvent()
method.public static FlowEvent newFlowEvent()
FlowHandle.takeFlowEvent()
method.public static CacheSessionEvent newCacheSessionEvent()
CacheSessionHandle.takeCacheSessionEvent()
method.public static ReplicationGroupMessageIdHandle newReplicationGroupMessageIdHandle()
ReplicationGroupMessageIdHandle
, this is an "unbound" handle that can be
used with
Solclient.createReplicationGroupMessageIdForHandle()
.Copyright 2004-2024 Solace Corporation. All rights reserved.