protected class SLSLogFacility.RequestQueue
extends java.lang.Object
Constructor and Description |
---|
RequestQueue()
Creates an empty request queue.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this queue.
|
SLSLogFacility.WorkerRequest |
get()
Removes and returns the first request in this queue.
|
boolean |
isEmpty()
Tests if this queue is empty.
|
SLSLogFacility.WorkerRequest |
peek()
Returns the first request in this queue without removing it.
|
void |
queue(SLSLogFacility.WorkerRequest r)
Adds a new request on this queue.
|
int |
size()
Returns the size of this queue.
|
public void queue(SLSLogFacility.WorkerRequest r)
r
- the WorkerRequest
to queue.public SLSLogFacility.WorkerRequest get()
WorkerRequest
in this queue;
null
if queue is empty.public SLSLogFacility.WorkerRequest peek()
WorkerRequest
in this queue;
null
if queue is empty.public int size()
public boolean isEmpty()
true
if queue is empty; false
otherwise.public void clear()
Copyright © SAS Institute. All Rights Reserved.