summaryrefslogtreecommitdiff
path: root/libjava/java/util/concurrent/ArrayBlockingQueue.h
blob: a431043c671ab190522395f94c02cd1c175e80a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_util_concurrent_ArrayBlockingQueue__
#define __java_util_concurrent_ArrayBlockingQueue__

#pragma interface

#include <java/util/AbstractQueue.h>
#include <gcj/array.h>


class java::util::concurrent::ArrayBlockingQueue : public ::java::util::AbstractQueue
{

public: // actually package-private
  virtual jint inc(jint);
private:
  void insert(::java::lang::Object *);
  ::java::lang::Object * extract();
public: // actually package-private
  virtual void removeAt(jint);
public:
  ArrayBlockingQueue(jint);
  ArrayBlockingQueue(jint, jboolean);
  ArrayBlockingQueue(jint, jboolean, ::java::util::Collection *);
  virtual jboolean add(::java::lang::Object *);
  virtual jboolean offer(::java::lang::Object *);
  virtual void put(::java::lang::Object *);
  virtual jboolean offer(::java::lang::Object *, jlong, ::java::util::concurrent::TimeUnit *);
  virtual ::java::lang::Object * poll();
  virtual ::java::lang::Object * take();
  virtual ::java::lang::Object * poll(jlong, ::java::util::concurrent::TimeUnit *);
  virtual ::java::lang::Object * peek();
  virtual jint size();
  virtual jint remainingCapacity();
  virtual jboolean remove(::java::lang::Object *);
  virtual jboolean contains(::java::lang::Object *);
  virtual JArray< ::java::lang::Object * > * toArray();
  virtual JArray< ::java::lang::Object * > * toArray(JArray< ::java::lang::Object * > *);
  virtual ::java::lang::String * toString();
  virtual void clear();
  virtual jint drainTo(::java::util::Collection *);
  virtual jint drainTo(::java::util::Collection *, jint);
  virtual ::java::util::Iterator * iterator();
public: // actually package-private
  static jint access$0(::java::util::concurrent::ArrayBlockingQueue *);
  static jint access$1(::java::util::concurrent::ArrayBlockingQueue *);
  static JArray< ::java::lang::Object * > * access$2(::java::util::concurrent::ArrayBlockingQueue *);
  static jint access$3(::java::util::concurrent::ArrayBlockingQueue *);
  static ::java::util::concurrent::locks::ReentrantLock * access$4(::java::util::concurrent::ArrayBlockingQueue *);
private:
  static const jlong serialVersionUID = -817911632652898426LL;
  JArray< ::java::lang::Object * > * __attribute__((aligned(__alignof__( ::java::util::AbstractQueue)))) items;
  jint takeIndex;
  jint putIndex;
  jint count;
  ::java::util::concurrent::locks::ReentrantLock * lock;
  ::java::util::concurrent::locks::Condition * notEmpty;
  ::java::util::concurrent::locks::Condition * notFull;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_ArrayBlockingQueue__