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);
}
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);
}
Aggregations