Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.DurableUnsubscribe


     * @throws IOException
     */

    public void buildPacket(Packet packet, DataInput dataIn) throws IOException {
        super.buildPacket(packet, dataIn);
        DurableUnsubscribe ds = (DurableUnsubscribe) packet;
        ds.setClientId(dataIn.readUTF());
        ds.setSubscriberName(dataIn.readUTF());
    }
View Full Code Here


     * @throws IOException thrown if an error occurs
     */

    public void writePacket(Packet packet, DataOutput dataOut) throws IOException {
        super.writePacket(packet, dataOut);
        DurableUnsubscribe ds = (DurableUnsubscribe) packet;
        super.writeUTF(ds.getClientId(), dataOut);
        super.writeUTF(ds.getSubscriberName(), dataOut);
    }
View Full Code Here

     * @throws InvalidDestinationException if an invalid subscription name is specified.
     * @since 1.1
     */
    public void unsubscribe(String name) throws JMSException {
        checkClosed();
        DurableUnsubscribe ds = new DurableUnsubscribe();
        ds.setId(this.packetIdGenerator.generateId());
        ds.setClientId(this.connection.getClientID());
        ds.setSubscriberName(name);
        this.connection.syncSendPacket(ds);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.message.DurableUnsubscribe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.