001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.report2;
017    
018    /**
019     * 帳票処ç�??キューの処ç�?–¹法を定義するインターフェースですã?
020     *
021     * 帳票処ç�??オブジェクトからã?こã?インターフェースをé?じて、キューの生æ?方法及び終äº?
022     * を操作することで、各振るè?ã�?‚’こã?インターフェースの実è£?‚¯ラスで定義することが可能になりますã?
023     *
024     * @og.group 帳票シスãƒ?ƒ 
025     *
026     * @version  4.0
027     * @author   Hiroki.Nakamura
028     * @since    JDK1.6
029     */
030    public interface QueueManager {
031    
032            /**
033             * キューを作æ?しますã?
034             * 作æ?したキューはOOoExecThread#stackQueueによりスタãƒ?‚¯して下さã�??
035             */
036            public void create();
037    
038            /**
039             * キューに帳票ãƒ??タをセãƒ?ƒˆしますã?
040             *
041             * @param       queue   ExecQueueオブジェクãƒ?
042             */
043            public void set( final ExecQueue queue );
044    
045            /**
046             * キューを実行中の状態に更新しますã?
047             *
048             * @param       queue   ExecQueueオブジェクãƒ?
049             */
050            public void execute( final ExecQueue queue );
051    
052            /**
053             * キューを完äº?¸ˆã?状態に更新しますã?
054             *
055             * @param       queue   ExecQueueオブジェクãƒ?
056             */
057            public void complete( final ExecQueue queue );
058    
059            /**
060             * キューをエラーの状態に更新しますã?
061             *
062             * @param       queue   ExecQueueオブジェクãƒ?
063             */
064            public void error( final ExecQueue queue );
065    }