001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }