| java.lang.Object java.io.OutputStream org.apache.james.util.SchedulerNotifyOutputStream
SchedulerNotifyOutputStream | public class SchedulerNotifyOutputStream extends OutputStream (Code) | | This will reset the scheduler each time a certain amount of data has
been transfered. This allows us to keep the timeout settings low, while
not timing out during large data transfers.
|
Method Summary | |
public void | close() | public void | flush() | public void | write(byte[] b, int off, int len) | public void | write(int b) |
lengthReset | int lengthReset(Code) | | The number of bytes that need to be written before the counter is reset.
|
scheduler | TimeScheduler scheduler(Code) | | The scheduler used by this class to timeout
|
triggerName | String triggerName(Code) | | The name of the trigger
|
writtenCounter | int writtenCounter(Code) | | The number of bytes written since the counter was last reset
|
SchedulerNotifyOutputStream | public SchedulerNotifyOutputStream(OutputStream out, TimeScheduler scheduler, String triggerName, int lengthReset)(Code) | | |
write | public void write(byte[] b, int off, int len) throws IOException(Code) | | Write an array of bytes to the stream
Parameters: b - the array of bytes to write to the stream Parameters: off - the index in the array where we start writing Parameters: len - the number of bytes of the array to write throws: IOException - if an exception is encountered when writing |
write | public void write(int b) throws IOException(Code) | | Write a byte to the stream
Parameters: b - the byte to write to the stream throws: IOException - if an exception is encountered when writing |
|
|