001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.scheduler;
016    
017    import com.liferay.portal.kernel.messaging.MessageListener;
018    
019    import java.io.Serializable;
020    
021    /**
022     * @author Shuyang Zhou
023     */
024    public interface SchedulerEntry extends Serializable {
025    
026            public String getDescription();
027    
028            /**
029             * @deprecated As of 7.0.0
030             */
031            @Deprecated
032            public MessageListener getEventListener();
033    
034            public String getEventListenerClass();
035    
036            public String getPropertyKey();
037    
038            public TimeUnit getTimeUnit();
039    
040            public Trigger getTrigger() throws SchedulerException;
041    
042            public TriggerType getTriggerType();
043    
044            public String getTriggerValue();
045    
046            public void setDescription(String description);
047    
048            /**
049             * @deprecated As of 7.0.0
050             */
051            @Deprecated
052            public void setEventListener(MessageListener eventListener);
053    
054            public void setEventListenerClass(String eventListenerClass);
055    
056            public void setPropertyKey(String propertyKey);
057    
058            public void setTimeUnit(TimeUnit timeUnit);
059    
060            public void setTriggerType(TriggerType triggerType);
061    
062            public void setTriggerValue(int triggerValue);
063    
064            public void setTriggerValue(long triggerValue);
065    
066            public void setTriggerValue(String triggerValue);
067    
068    }