Search in sources :

Example 1 with ClusterSubscriptionInfo

use of com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterSubscriptionInfo in project openmq by eclipse-ee4j.

the class ChangeRecord method recordCreateSubscription.

public static void recordCreateSubscription(Subscription sub, ChangeRecordCallback cb) throws BrokerException {
    ClusterSubscriptionInfo csi = ClusterSubscriptionInfo.newInstance(sub);
    GPacket gp = csi.getGPacket(ProtocolGlobals.G_NEW_INTEREST, true);
    ChangeRecordInfo cri = storeChangeRecord(gp, cb);
    sub.setCurrentChangeRecordInfo(ProtocolGlobals.G_NEW_INTEREST, cri);
}
Also used : ChangeRecordInfo(com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo) GPacket(com.sun.messaging.jmq.io.GPacket) ClusterSubscriptionInfo(com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterSubscriptionInfo)

Example 2 with ClusterSubscriptionInfo

use of com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterSubscriptionInfo in project openmq by eclipse-ee4j.

the class ChangeRecord method recordUnsubscribe.

public static void recordUnsubscribe(Subscription sub, ChangeRecordCallback cb) throws BrokerException {
    ClusterSubscriptionInfo csi = ClusterSubscriptionInfo.newInstance(sub);
    GPacket gp = csi.getGPacket(ProtocolGlobals.G_REM_DURABLE_INTEREST, true);
    ChangeRecordInfo cri = storeChangeRecord(gp, cb);
    sub.setCurrentChangeRecordInfo(ProtocolGlobals.G_REM_DURABLE_INTEREST, cri);
}
Also used : ChangeRecordInfo(com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo) GPacket(com.sun.messaging.jmq.io.GPacket) ClusterSubscriptionInfo(com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterSubscriptionInfo)

Aggregations

GPacket (com.sun.messaging.jmq.io.GPacket)2 ClusterSubscriptionInfo (com.sun.messaging.jmq.jmsserver.multibroker.raptor.ClusterSubscriptionInfo)2 ChangeRecordInfo (com.sun.messaging.jmq.jmsserver.persist.api.ChangeRecordInfo)2