protected class NuxeoStandbyFilter.Controller extends Object
Modifier and Type | Field and Description |
---|---|
protected Condition |
canProceed |
protected Condition |
canStandby |
protected ThreadLocal<Boolean> |
hasBeenFiltered
This variable is used to determine if the Thread wanting to shutdown/standby the server has gone through this
filter.
|
protected AtomicInteger |
inProgress |
protected boolean |
isStandby |
protected Lock |
lock |
Modifier | Constructor and Description |
---|---|
protected |
Controller() |
Modifier and Type | Method and Description |
---|---|
protected void |
awaitCanProceed() |
protected void |
awaitCanStandby() |
void |
onNewRequest() |
void |
onRequestEnd() |
void |
onResumed() |
void |
onStandby() |
protected void |
signalBlockedToProceed() |
protected void |
signalBlockedToStandby() |
protected final Condition canStandby
protected final Condition canProceed
protected volatile boolean isStandby
protected final AtomicInteger inProgress
protected final ThreadLocal<Boolean> hasBeenFiltered
protected Controller()
public void onNewRequest()
public void onRequestEnd()
public void onStandby() throws RuntimeException
RuntimeException
public void onResumed()
protected void awaitCanProceed() throws RuntimeException
RuntimeException
protected void awaitCanStandby() throws RuntimeException
RuntimeException
protected void signalBlockedToProceed()
protected void signalBlockedToStandby()
Copyright © 2019 Nuxeo. All rights reserved.