public enum ReaderWriterPolicy extends Enum<ReaderWriterPolicy>
Enum Constant and Description |
---|
ARRIVAL_ORDER |
READER_PRIORITY |
WRITER_PRIORITY |
Modifier and Type | Method and Description |
---|---|
abstract int |
numMailboxes() |
abstract int |
readMailbox() |
static ReaderWriterPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReaderWriterPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract int |
writeMailbox() |
public static final ReaderWriterPolicy ARRIVAL_ORDER
public static final ReaderWriterPolicy READER_PRIORITY
public static final ReaderWriterPolicy WRITER_PRIORITY
public static ReaderWriterPolicy[] values()
for (ReaderWriterPolicy c : ReaderWriterPolicy.values()) System.out.println(c);
public static ReaderWriterPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int writeMailbox()
public abstract int readMailbox()
public abstract int numMailboxes()
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.