org.apache.activemq.artemis.core.persistence.impl.journal.codec.ScheduledDeliveryEncoding

Here are the examples of the java api class org.apache.activemq.artemis.core.persistence.impl.journal.codec.ScheduledDeliveryEncoding taken from open source projects.

1. AbstractJournalStorageManager#updateScheduledDeliveryTimeTransactional()

View license
@Override
public void updateScheduledDeliveryTimeTransactional(final long txID, final MessageReference ref) throws Exception {
    ScheduledDeliveryEncoding encoding = new ScheduledDeliveryEncoding(ref.getScheduledDeliveryTime(), ref.getQueue().getID());
    readLock();
    try {
        messageJournal.appendUpdateRecordTransactional(txID, ref.getMessage().getMessageID(), JournalRecordIds.SET_SCHEDULED_DELIVERY_TIME, encoding);
    } finally {
        readUnLock();
    }
}

2. AbstractJournalStorageManager#updateScheduledDeliveryTime()

View license
@Override
public void updateScheduledDeliveryTime(final MessageReference ref) throws Exception {
    ScheduledDeliveryEncoding encoding = new ScheduledDeliveryEncoding(ref.getScheduledDeliveryTime(), ref.getQueue().getID());
    readLock();
    try {
        messageJournal.appendUpdateRecord(ref.getMessage().getMessageID(), JournalRecordIds.SET_SCHEDULED_DELIVERY_TIME, encoding, syncNonTransactional, getContext(syncNonTransactional));
    } finally {
        readUnLock();
    }
}