|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jms.AQjmsDestination
This is an Oracle class which implements javax.jms.Queue
, javax.jms.Topic
, javax.naming.Referenceable
and java.io.Serializable
.
Method Summary | |
void |
alter(Session session, AQjmsDestinationProperty destinationProperty) Alters the properties of the queue/topic. |
void |
alterPropagationSchedule(Session session, java.lang.String destination, java.lang.Double duration, java.lang.String nextTime, java.lang.Double latency) Alters the propagation schedule between the topic and the destination database. |
void |
delete() Delete this temporary destination and make it unusable for further operations. |
void |
disablePropagationSchedule(Session session, java.lang.String destination) Disables the propagation schedule. |
void |
drop(Session session) Drops the queue/topic. |
void |
enablePropagationSchedule(Session session, java.lang.String destination) Enables the propagation schedule. |
java.lang.String |
getCompleteName() Gets the complete name of the queue/topic in the form "[schema.]name". |
java.lang.String |
getCompleteTableName() Gets the complete name of the queue table of the queue/topic in the form "[schema.]name". |
java.lang.String |
getQueueName() Gets the name of the queue. |
java.lang.String |
getQueueOwner() Gets the owner of the queue. |
javax.naming.Reference |
getReference() Creates a destination reference. |
java.lang.String |
getTopicName() Gets the name of the topic. |
java.lang.String |
getTopicOwner() Gets the schema of the topic. |
void |
grantQueuePrivilege(Session session, java.lang.String privilege, java.lang.String grantee, boolean grantOption) Grants enqueue or dequeue privilege on the queue to a database user. |
void |
grantTopicPrivilege(Session session, java.lang.String privilege, java.lang.String grantee, boolean grantOption) Grants a topic privilege. |
void |
revokeQueuePrivilege(Session session, java.lang.String privilege, java.lang.String grantee) Revokes a queue privilege. |
void |
revokeTopicPrivilege(Session session, java.lang.String privilege, java.lang.String grantee) Revokes a topic privilege. |
void |
schedulePropagation(Session session, java.lang.String destination, java.util.Date startTime, java.lang.Double duration, java.lang.String nextTime, java.lang.Double latency) Schedules propagation from the topic for the given destination database. |
void |
start(Session session, boolean enqueue, boolean dequeue) Starts the queue/topic for enqueue or dequeue or both. |
void |
start(Session session, boolean enqueue, boolean dequeue, boolean autonomous) Starts the queue/topic for enqueue or dequeue or both. |
void |
stop(Session session, boolean enqueue, boolean dequeue, boolean wait) Stops the queue/topic for enqueue or dequeue or both. |
void |
stop(Session session, boolean enqueue, boolean dequeue, boolean wait, boolean autonomous) Stops the queue/topic for enqueue or dequeue or both. |
java.lang.String |
toString() Gets the queue/topic as a string, in the form "[schema.]name". |
void |
unschedulePropagation(Session session, java.lang.String destination) Unschedules propagation between the topic and the specified destination. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getQueueName() throws JMSException
getQueueName
in interface Queue
JMSException
- if the queue is not a single consumer queue.public java.lang.String getTopicName() throws JMSException
getTopicName
in interface Topic
JMSException
- if the queue is not a multi consumer queue (topic).public java.lang.String getQueueOwner() throws JMSException
JMSException
- if the schema could not be retrieved.public java.lang.String getTopicOwner() throws JMSException
JMSException
- if the schema could not be retrieved.public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public java.lang.String getCompleteName()
public java.lang.String getCompleteTableName()
public java.lang.String toString()
toString
in interface Queue
public void start(Session session, boolean enqueue, boolean dequeue) throws JMSException
The start operation is not performed as an autonomous transaction.
session
- the jms sessionenqueue
- whether enqueue should be enableddequeue
- whether dequeue should be enabledJMSException
- if the queue/topic could not be started.public void start(Session session, boolean enqueue, boolean dequeue, boolean autonomous) throws JMSException
session
- the jms sessionenqueue
- whether enqueue should be enableddequeue
- whether dequeue should be enabledautonomous
- whether the start operation should be performed as an autonomous transactionJMSException
- if the queue/topic could not be started.public void stop(Session session, boolean enqueue, boolean dequeue, boolean wait) throws JMSException
The stop operation is not performed as an autonomous transaction.
session
- the jms sessionenqueue
- whether enqueue should be disableddequeue
- whether dequeue should be disabledwait
- whether to wait for pending transactions on the queue/topic to completeJMSException
- if the queue/topic could not be stopped.public void stop(Session session, boolean enqueue, boolean dequeue, boolean wait, boolean autonomous) throws JMSException
session
- the jms sessionenqueue
- whether enqueue should be disableddequeue
- whether dequeue should be disabledwait
- whether to wait for pending transactions on the queue/topic to completeautonomous
- whether the stop operation should be performed as an autonomous transactionJMSException
- if the queue/topic could not be stopped.public void alter(Session session, AQjmsDestinationProperty destinationProperty) throws JMSException
session
- the jms sessiondestinationProperty
- the new properties of the queue/topicJMSException
- if the properties could not be altered.public void drop(Session session) throws JMSException
session
- the jms sessionJMSException
- if the queue/topic could not be dropped.public void schedulePropagation(Session session, java.lang.String destination, java.util.Date startTime, java.lang.Double duration, java.lang.String nextTime, java.lang.Double latency) throws JMSException
session
- the JMS sessiondestination
- the dblink of the remote database for which propagation is being scheduled. A null
string means that propagation will be scheduled for all subscribers in the database of the topicstartTime
- the time propagation must be startedduration
- the duration of propagationnextTime
- the next time propagation must be donelatency
- the latency in seconds that can be tolerated (Latency is the difference between the time a message was enqueued and the time it was propagated.)JMSException
- if propagation could not be scheduled.public void unschedulePropagation(Session session, java.lang.String destination) throws JMSException
session
- the jms sessiondestination
- the dblink of the destination database for which propagation must be unscheduledJMSException
- if propagation could not be unscheduled.public void alterPropagationSchedule(Session session, java.lang.String destination, java.lang.Double duration, java.lang.String nextTime, java.lang.Double latency) throws JMSException
session
- the jms sessiondestination
- the dblink of the destination databaseduration
- the new durationnextTime
- the new next-time for propagationlatency
- the new latencyJMSException
- if the schedule could not be altered.public void enablePropagationSchedule(Session session, java.lang.String destination) throws JMSException
session
- the JMS sessiondestination
- the dblink of the destination databaseJMSException
- if the propagation could not be enabled.public void disablePropagationSchedule(Session session, java.lang.String destination) throws JMSException
session
- the jms sessiondestination
- the dblink to the destination databaseJMSException
- if the propagation schedule could not be disabled.public void grantQueuePrivilege(Session session, java.lang.String privilege, java.lang.String grantee, boolean grantOption) throws JMSException
session
- the jms sessionprivilege
- the privilege ("ENQUEUE"
or "DEQUEUE"</code">)
grantee
- the user being granted the privilege
grantOption
- whether the grantee can grant the privilege to othersJMSException
- if the privilege could not be granted.public void grantTopicPrivilege(Session session, java.lang.String privilege, java.lang.String grantee, boolean grantOption) throws JMSException
session
- the jms sessionprivilege
- the privilege ("ENQUEUE"
or "DEQUEUE"</code">) being granted
grantee
- the database user being granted the privilege
grantOption
- whether the grantee can grant the privilege to other usersJMSException
- if the privilege could not be granted.public void revokeQueuePrivilege(Session session, java.lang.String privilege, java.lang.String grantee) throws JMSException
session
- the jms sessionprivilege
- the privilege ("ENQUEUE"
or "DEQUEUE"</code">) being revoked
grantee
- the database user from whom the privilege is being revoked
JMSException
- if the privilege could not be revoked.public void revokeTopicPrivilege(Session session, java.lang.String privilege, java.lang.String grantee) throws JMSException
session
- the jms sessionprivilege
- the privilege ("ENQUEUE"
or "DEQUEUE"</code">) being revoked
grantee
- the database user from whom the privilege is being revoked
JMSException
- if the privilege could not be revoked.public void delete() throws JMSException
delete
in interface TemporaryQueue
JMSException
- if the JMS provider fails to delete the temporary queue due to some internal error.
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |