public final class ServerThrottle
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ServerThrottle.ServerThrottleMaker |
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private static weblogic.security.acl.internal.AuthenticatedSubject |
kernelId |
private weblogic.utils.concurrent.Semaphore |
lock |
private int |
maxOpenSockets |
Modifier | Constructor and Description |
---|---|
private |
ServerThrottle() |
Modifier and Type | Method and Description |
---|---|
void |
acquireSocketPermit()
First attempt to acquire a permit without blocking.
|
void |
changeMaxOpenSockets(int maxvalue) |
void |
decrementOpenSocketCount() |
static ServerThrottle |
getServerThrottle() |
boolean |
isEnabled() |
boolean |
tryAcquirePermit()
tries to acquire a permit and returns the result without blocking.
|
private static final weblogic.security.acl.internal.AuthenticatedSubject kernelId
private final weblogic.utils.concurrent.Semaphore lock
private volatile boolean enabled
private volatile int maxOpenSockets
public static ServerThrottle getServerThrottle()
public void changeMaxOpenSockets(int maxvalue)
public boolean isEnabled()
public boolean tryAcquirePermit()
public void acquireSocketPermit()
public void decrementOpenSocketCount()