1 23 package com.sun.enterprise.web.connector.grizzly; 24 25 30 public interface Pipeline { 31 32 35 public void addTask(Task task) ; 36 37 38 41 public Task getTask() ; 42 43 44 47 public int getWaitingThread(); 48 49 50 53 public int getMaxThreads(); 54 55 56 59 public int getCurrentThreadCount() ; 60 61 62 66 public int getCurrentThreadsBusy(); 67 68 69 73 public void initPipeline(); 74 75 76 79 public String getName(); 80 81 82 85 public void startPipeline(); 86 87 88 91 public void stopPipeline(); 92 93 94 97 public void setPriority(int priority); 98 99 100 103 public void setMaxThreads(int maxThread); 104 105 106 109 public void setMinThreads(int minThread); 110 111 112 115 public void setPort(int port); 116 117 118 121 public void setName(String name); 122 123 124 128 public void setQueueSizeInBytes(int maxQueueSizeInBytesCount); 129 130 131 135 public void setThreadsIncrement(int processorThreadsIncrement); 136 137 138 141 public void setThreadsTimeout(int processorThreadsTimeout); 142 143 144 148 public void setPipelineStatistic(PipelineStatistic pipelineStatistic); 149 150 151 155 public PipelineStatistic getPipelineStatistic(); 156 157 158 163 public int size(); 164 165 166 170 public int getMaxSpareThreads(); 171 172 175 public int getMinSpareThreads(); 176 177 178 181 public void setMinSpareThreads(int minSpareThreads); 182 183 184 187 public boolean interruptThread(long threadId); 188 } 189 | Popular Tags |