public abstract static class ServerLimit.Builder<T extends ServerLimit.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
barrier |
protected long |
failCount |
protected long |
held |
protected long |
limit |
protected long |
maxHeld |
Constructor and Description |
---|
ServerLimit.Builder() |
protected long held
protected long maxHeld
protected long barrier
protected long limit
protected long failCount
protected abstract T self()
public T held(long held)
ServerLimit.getHeld()
public T maxHeld(long maxHeld)
ServerLimit.getMaxHeld()
public T barrier(long barrier)
ServerLimit.getBarrier()
public T limit(long limit)
ServerLimit.getLimit()
public T failCount(long failCount)
ServerLimit.getFailCount()
public ServerLimit build()
public T fromServerLimit(ServerLimit in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.