Constructor and Description |
---|
Reentrant() |
Modifier and Type | Method and Description |
---|---|
boolean |
dec()
Decrements the reentrants counter by one.
|
int |
get()
Returns the value of the reentrants counter for the current thread.
|
static int |
getMaxReentrants()
Returns the maximum number of write() method reentrants a thread is
allowed to made.
|
static Writer.Reentrant |
getWriteReentrant()
Returns the current write reentrants counter.
|
boolean |
inc()
Increments the reentrants counter by one.
|
boolean |
isMaxReentrantsReached()
Returns true, if max number of write->completion-handler
reentrants has been reached for the passed
Writer.Reentrant object,
and next write will happen in the separate thread. |
static void |
setMaxReentrants(int maxWriteReentrants)
Sets the maximum number of write() method reentrants a thread is
allowed to made.
|
public static int getMaxReentrants()
public static void setMaxReentrants(int maxWriteReentrants)
maxWriteReentrants
- the maximum number of write() method calls
a thread is allowed to make.public static Writer.Reentrant getWriteReentrant()
Writer.canWrite(org.glassfish.grizzly.Connection)
and various write methods.public int get()
public boolean inc()
getMaxReentrants()
limit, or false otherwise.public boolean dec()
getMaxReentrants()
limit, or false otherwise.public boolean isMaxReentrantsReached()
Writer.Reentrant
object,
and next write will happen in the separate thread.Writer.Reentrant
object,
and next write will happen in the separate thread.Copyright © 2014 Oracle Corporation. All rights reserved.