01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * Software distributed under the License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11: * the License for the specific terms governing rights and limitations
12: * under the License.
13: *
14: * The Initial Developer of the Enhydra Application Server is Lutris
15: * Technologies, Inc. The Enhydra Application Server and portions created
16: * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17: * All Rights Reserved.
18: *
19: * Contributor(s):
20: *
21: * $Id: OutputStreamEventQueueEntry.java,v 1.2 2006-06-15 13:47:01 sinisa Exp $
22: */
23:
24: package com.lutris.util;
25:
26: import java.util.Date;
27:
28: /**
29: This is a helper class for OutputStreamEventQueue. It describes one
30: event (one call to write()). Only the OutputStreamEventQueue should
31: create instances of this class.
32:
33: @see com.lutris.util.OutputStreamEventQueue
34: @author Andy John
35: */
36: public class OutputStreamEventQueueEntry {
37:
38: /**
39: The time when the event was created (when write() was called).
40: */
41: public Date when;
42:
43: /**
44: The data. This is what was written by the write() call.
45: */
46: public byte[] data;
47:
48: /**
49: Only the OutputStreamEventQueue should create instances of this class.
50:
51: @see com.lutris.util.OutputStreamEventQueue
52: */
53: protected OutputStreamEventQueueEntry() {
54: }
55:
56: /**
57: Only the OutputStreamEventQueue should create instances of this class.
58:
59: @see com.lutris.util.OutputStreamEventQueue
60: */
61: protected OutputStreamEventQueueEntry(Date when, byte[] data) {
62: this.when = when;
63: this.data = data;
64: }
65: }
|