|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jms.AQjmsDestination
Oracle class implementing javax.jms.Queue, javax.jms.Topic, javax.naming.Referenceable, java.io.Serializable,
Method Summary | |
void |
alter(javax.jms.Session session, oracle.jms.AQjmsDestinationProperty dest_property) alter the properties of the queue/topic |
void |
alterPropagationSchedule(javax.jms.Session session, java.lang.String destination, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency) alter propapagation schedule between the topic and the destination database |
void |
delete() Delete this temporary destination and make it unusable for further operations. |
void |
disablePropagationSchedule(javax.jms.Session session, java.lang.String destination) disable propapagation schedule |
void |
drop(javax.jms.Session session) drop the queue/topic |
void |
enablePropagationSchedule(javax.jms.Session session, java.lang.String destination) enable propapagation schedule |
java.lang.String |
getCompleteName() Get the complete name of the queue/topic, of the form, [schema].name |
java.lang.String |
getCompleteTableName() Get the complete name of the queue table of the queue/topic of the form, [schema].name |
java.lang.String |
getQueueName() Get the name of the queue |
java.lang.String |
getQueueOwner() Get the owner of the queue |
javax.naming.Reference |
getReference() |
java.lang.String |
getTopicName() Get the name of the Topic |
java.lang.String |
getTopicOwner() Get the schema of the topic |
void |
grantQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option) Grant enqueue or dequeue privilege on the queue to a database user |
void |
grantTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option) Grant a topic privilege |
void |
revokeQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee) Revoke a queue privilege |
void |
revokeTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee) Revoke a topic privilege |
void |
schedulePropagation(javax.jms.Session session, java.lang.String destination, java.util.Date start_time, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency) Schedule propapagation from the topic for the given destination database |
void |
start(javax.jms.Session session, boolean enqueue, boolean dequeue) start the queue/topic for enqueue or dequeue or both |
void |
start(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean autonomous) |
void |
stop(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean wait) stop the queue/topic for enqueue or dequeue or both |
void |
stop(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean wait, boolean autonomous) |
java.lang.String |
toString() Get the queue/topic as a string, of the form [schema].name |
void |
unschedulePropagation(javax.jms.Session session, java.lang.String destination) Unschedule propapagation 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 queuepublic 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 retrievedpublic java.lang.String getTopicOwner() throws JMSException
JMSException
- if the schema could not be retrievedpublic 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
toString
in class java.lang.Object
public void start(javax.jms.Session session, boolean enqueue, boolean dequeue) throws JMSException
session
- the jms sessionenqueue
- whether enqueue should be enableddequeue
- whether dequeue should be enabledJMSException
- if failed to start the queue/topicpublic void start(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean autonomous) throws JMSException
JMSException
public void stop(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean wait) 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 completeJMSException
- if failed to stop the queue/topicpublic void stop(javax.jms.Session session, boolean enqueue, boolean dequeue, boolean wait, boolean autonomous) throws JMSException
JMSException
public void alter(javax.jms.Session session, oracle.jms.AQjmsDestinationProperty dest_property) throws JMSException
session
- the jms sessiondest_property
- the new properties of the queue/topicJMSException
- if the properties could not be alteredpublic void drop(javax.jms.Session session) throws JMSException
session
- the jms sessionJMSException
- if the queue/topic could not be droppedpublic void schedulePropagation(javax.jms.Session session, java.lang.String destination, java.util.Date start_time, java.lang.Double duration, java.lang.String next_time, 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 topicstart_time
- the time propagation must be startedduration
- the duration of propagationnext_time
- 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 propagatedJMSException
- if propagation could not be scheduledpublic void unschedulePropagation(javax.jms.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 oculd not be unscheduledpublic void alterPropagationSchedule(javax.jms.Session session, java.lang.String destination, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency) throws JMSException
session
- the jms sessiondestination
- the dblink of the destination databaseduration
- the new durationnext_time
- the new next_time for propagationlatency
- the new latencyJMSException
- if the schedule could not be alteredpublic void enablePropagationSchedule(javax.jms.Session session, java.lang.String destination) throws JMSException
session
- the JMS sessiondestination
- the dblink of the destination databaseJMSException
- if the propagation could not be enabledpublic void disablePropagationSchedule(javax.jms.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 disabledpublic void grantQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option) throws JMSException
session
- the jms sessionprivilege
- the privilege (ENQUEUE or DEQUEUE)grantee
- the user being granted the privilegegrant_option
- whether the grantee can grant the privilege to othersJMSException
- if the privilege could not be grantedpublic void grantTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee, boolean grant_option) throws JMSException
session
- the jms sessionprivilege
- the privilege (ENQUEUE or DEQUEUE) being grantedgrantee
- the database user being granted the privilegegrant_option
- whether the grantee can grant the privilege to other usersJMSException
- if the privilege could not be grantedpublic void revokeQueuePrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee) throws JMSException
session
- the jms sessionprivilege
- the privilege (ENQUEUE or DEQUEUE) being revokedgrantee
- the database user from whom the privilege is being revokedJMSException
- if the privilege could not be revokedpublic void revokeTopicPrivilege(javax.jms.Session session, java.lang.String privilege, java.lang.String grantee) throws JMSException
session
- the jms sessionprivilege
- the privilege (ENQUEUE or DEQUEUE) being revokedgrantee
- the database user from whom the privilege is being revokedJMSException
- if the privilege could not be revokedpublic 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 Release 1 (10.1) B12023-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |