alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

ActiveMQ example source code file (ScheduledMessage.java)

This example ActiveMQ source code file (ScheduledMessage.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - ActiveMQ tags/keywords

action_end_time, amq_scheduled_cron, amq_scheduled_cron, amq_scheduled_delay, amq_scheduled_delay, amq_scheduled_period, amq_scheduled_repeat, amq_scheduler_action, amq_scheduler_action, amq_scheduler_action_removeall, remove, scheduledmessage, string, string

The ActiveMQ ScheduledMessage.java source code

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.activemq;

public interface ScheduledMessage {
    /**
     * The time in milliseconds that a message will wait before being scheduled to be
     * delivered by the broker
     */
    public static final String AMQ_SCHEDULED_DELAY = "AMQ_SCHEDULED_DELAY";
    /**
     * The time in milliseconds to wait after the start time to wait before scheduling the message again
     */
    public static final String AMQ_SCHEDULED_PERIOD = "AMQ_SCHEDULED_PERIOD";
    /**
     * The number of times to repeat scheduling a message for delivery
     */
    public static final String AMQ_SCHEDULED_REPEAT = "AMQ_SCHEDULED_REPEAT";
    /**
     * Use a Cron tab entry to set the schedule
     */
    public static final String AMQ_SCHEDULED_CRON = "AMQ_SCHEDULED_CRON";
    /**
     * An Id that is assigned to a Scheduled Message, this value is only available once the
     * Message is scheduled, Messages sent to the Browse Destination or delivered to the
     * assigned Destination will have this value set.
     */
    public static final String AMQ_SCHEDULED_ID = "scheduledJobId";

    /**
     * Special destination to send Message's to with an assigned "action" that the Scheduler
     * should perform such as removing a message.
     */
    public static final String AMQ_SCHEDULER_MANAGEMENT_DESTINATION = "ActiveMQ.Scheduler.Management";
    /**
     * Used to specify that a some operation should be performed on the Scheduled Message,
     * the Message must have an assigned Id for this action to be taken.
     */
    public static final String AMQ_SCHEDULER_ACTION = "AMQ_SCHEDULER_ACTION";

    /**
     * Indicates that a browse of the Scheduled Messages is being requested.
     */
    public static final String AMQ_SCHEDULER_ACTION_BROWSE = "BROWSE";
    /**
     * Indicates that a Scheduled Message is to be remove from the Scheduler, the Id of
     * the scheduled message must be set as a property in order for this action to have
     * any effect.
     */
    public static final String AMQ_SCHEDULER_ACTION_REMOVE = "REMOVE";
    /**
     * Indicates that all scheduled Messages should be removed.
     */
    public static final String AMQ_SCHEDULER_ACTION_REMOVEALL = "REMOVEALL";

    /**
     * A property that holds the beginning of the time interval that the specified action should
     * be applied within.  Maps to a long value that specified time in milliseconds since UTC.
     */
    public static final String AMQ_SCHEDULER_ACTION_START_TIME = "ACTION_START_TIME";
    /**
     * A property that holds the end of the time interval that the specified action should be
     * applied within.  Maps to a long value that specified time in milliseconds since UTC.
     */
    public static final String AMQ_SCHEDULER_ACTION_END_TIME = "ACTION_END_TIME";

}

Other ActiveMQ examples (source code examples)

Here is a short list of links related to this ActiveMQ ScheduledMessage.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.