public class EndpointProperties extends Object
JCSMPSession.createFlow(XMLMessageListener listener, ConsumerFlowProperties flowProps)
.Modifier and Type | Field and Description |
---|---|
static int |
ACCESSTYPE_EXCLUSIVE
The first client to bind receives the messages.
|
static int |
ACCESSTYPE_NONEXCLUSIVE
Each client bound receives messages in a round-robin fashion.
|
static int |
DISCARD_NOTIFY_SENDER_OFF
Do not notify sender if a message fails to be enqueued to the endpoint.
|
static int |
DISCARD_NOTIFY_SENDER_ON
Notify sender if a message fails to be enqueued to the endpoint.
|
static int |
PERMISSION_CONSUME
Permission to consume messages from the endpoint.
|
static int |
PERMISSION_DELETE
Permission to delete an endpoint.
|
static int |
PERMISSION_MODIFY_TOPIC
Permission to modify the topic on a Topic endpoint.
|
static int |
PERMISSION_NONE
No permission on the endpoint.
|
static int |
PERMISSION_READ_ONLY
Permission to only read from an endpoint.
|
Constructor and Description |
---|
EndpointProperties()
EndpointProperties constructor using default values of null.
|
EndpointProperties(Integer accessType,
Integer maxMsgSize,
Integer permission,
Integer quota)
EndpointProperties constructor.
|
EndpointProperties(Integer accessType,
Integer maxMsgSize,
Integer permission,
Integer quota,
Boolean respectsMsgTimeToLive)
EndpointProperties constructor.
|
EndpointProperties(Integer accessType,
Integer maxMsgSize,
Integer permission,
Integer quota,
Boolean respectsMsgTimeToLive,
Integer discardBehavior)
EndpointProperties constructor.
|
EndpointProperties(Integer accessType,
Integer maxMsgSize,
Integer permission,
Integer quota,
Boolean respectsMsgTimeToLive,
Integer discardBehavior,
Integer maxMsgRedelivery)
EndpointProperties constructor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getAccessType()
Returns the access type for the endpoint.
|
Integer |
getDiscardBehavior()
Whether to notify sender if a message fails to be enqueued to the
endpoint.
|
Integer |
getMaxMsgRedelivery()
Defines the maximum message redelivery count on the queue or topic endpoint.
|
Integer |
getMaxMsgSize()
Returns the maximum message size for the endpoint.
|
Integer |
getPermission()
Returns the permission for this endpoint.
|
Integer |
getQuota()
Returns the quota for the endpoint.
|
Boolean |
isRespectsMsgTTL()
The method returns whether the endpoint respects a message's Time-to-Live (TTL) value.
|
void |
setAccessType(Integer accessType)
Sets the access type for the endpoint.
|
void |
setDiscardBehavior(Integer discardBehavior)
If set, whether to notify sender if a message fails to be enqueued to the
endpoint.
|
void |
setMaxMsgRedelivery(Integer maxMsgRedelivery)
Sets the maximum message redelivery count on the queue or topic endpoint.
|
void |
setMaxMsgSize(Integer maxMsgSize)
Sets the maximum message size for the endpoint.
|
void |
setPermission(Integer permission)
Sets the permissions for the endpoint.
|
void |
setQuota(Integer quota)
Sets the message spool quota for an endpoint.
|
void |
setRespectsMsgTTL(Boolean respectsMsgTimeToLive)
Whether the endpoint will respect messages' Time-to-Live values.
|
public static final int PERMISSION_NONE
public static final int PERMISSION_READ_ONLY
public static final int PERMISSION_CONSUME
EndpointProperties.PERMISSION_READ_ONLY
public static final int PERMISSION_MODIFY_TOPIC
EndpointProperties.PERMISSION_CONSUME
public static final int PERMISSION_DELETE
EndpointProperties.PERMISSION_MODIFY_TOPIC
public static final int ACCESSTYPE_EXCLUSIVE
public static final int ACCESSTYPE_NONEXCLUSIVE
public static final int DISCARD_NOTIFY_SENDER_ON
public static final int DISCARD_NOTIFY_SENDER_OFF
public EndpointProperties()
public EndpointProperties(Integer accessType, Integer maxMsgSize, Integer permission, Integer quota)
accessType
- Access type for the endpoint.maxMsgSize
- Maximum message size for the endpoint.permission
- Permissions for the endpoint.quota
- Quota for the endpoint. That is, the maximum
size (in megabytes) available for storing messages in this spool endpoint.public EndpointProperties(Integer accessType, Integer maxMsgSize, Integer permission, Integer quota, Boolean respectsMsgTimeToLive)
accessType
- Access type for the endpoint.maxMsgSize
- Maximum message size for the endpoint.permission
- Permissions for the endpoint.quota
- Message spool quota for the endpoint.respectsMsgTimeToLive
- Whether the endpoint respects Message TTL.public EndpointProperties(Integer accessType, Integer maxMsgSize, Integer permission, Integer quota, Boolean respectsMsgTimeToLive, Integer discardBehavior)
accessType
- Access type for the endpoint.maxMsgSize
- Maximum message size for the endpoint.permission
- Permissions for the endpoint.quota
- Message spool quota for the endpoint.respectsMsgTimeToLive
- Whether the endpoint respects Message TTL.discardBehavior
- If specified, whether to notify sender if a message fails to
be enqueued to the endpoint.public EndpointProperties(Integer accessType, Integer maxMsgSize, Integer permission, Integer quota, Boolean respectsMsgTimeToLive, Integer discardBehavior, Integer maxMsgRedelivery)
accessType
- Access type for the endpoint.maxMsgSize
- Maximum message size for the endpoint.permission
- Permissions for the endpoint.quota
- Message spool quota for the endpoint.respectsMsgTimeToLive
- Whether the endpoint respects Message TTL.discardBehavior
- If specified, whether to notify sender if a message fails to
be enqueued to the endpoint.maxMsgRedelivery
- Sets the maximum message redelivery count on the queue or
topic endpoint. (Zero means retry forever).public Integer getAccessType()
When used for provisioning:
public Integer getMaxMsgSize()
When used for provisioning:
public Integer getPermission()
When used for provisioning:
public Integer getQuota()
When used for provisioning.
public void setAccessType(Integer accessType)
When used for provisioning:
accessType
- The access type for the endpoint.public void setMaxMsgSize(Integer maxMsgSize)
When used for provisioning:
maxMsgSize
- The maximum message size for the endpoint.public void setPermission(Integer permission)
When used for provisioning:
permission
- Permissions for the endpoint.public void setQuota(Integer quota)
When used for provisioning:
quota
- The quota for an endpoint.public Boolean isRespectsMsgTTL()
false
, the endpoint ignores a message's TTL value.
public void setRespectsMsgTTL(Boolean respectsMsgTimeToLive)
respectsMsgTimeToLive
- Whether the endpoint recognizes messages' Time-to-Live values and removes messages that expire.public void setDiscardBehavior(Integer discardBehavior)
A null value means use the appliance default.
discardBehavior
- One of EndpointProperties.DISCARD_NOTIFY_SENDER_OFF
,
EndpointProperties.DISCARD_NOTIFY_SENDER_ON
, or null
for
default.public Integer getDiscardBehavior()
A null value means use the appliance default.
public void setMaxMsgRedelivery(Integer maxMsgRedelivery)
public Integer getMaxMsgRedelivery()
Copyright 2004-2024 Solace Corporation. All rights reserved.