public abstract class AbstractProducerCreditsImpl extends Object implements ClientProducerCredits
Modifier and Type | Field and Description |
---|---|
protected SimpleString |
address |
protected int |
arriving |
protected boolean |
blocked |
protected boolean |
closed |
protected int |
pendingCredits |
protected boolean |
serverRespondedWithFail |
protected SessionContext |
sessionContext |
Constructor and Description |
---|
AbstractProducerCreditsImpl(ClientSessionInternal session,
SimpleString address,
int windowSize) |
Modifier and Type | Method and Description |
---|---|
void |
acquireCredits(int credits) |
protected abstract void |
actualAcquire(int credits) |
protected void |
afterAcquired(int credits) |
protected void |
checkCredits(int credits) |
void |
close() |
int |
decrementRefCount() |
SimpleString |
getAddress() |
abstract int |
getBalance() |
void |
incrementRefCount() |
void |
init(SessionContext sessionContext) |
boolean |
isBlocked() |
void |
receiveCredits(int credits) |
void |
receiveFailCredits(int credits) |
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
releaseOutstanding
protected int pendingCredits
protected volatile boolean closed
protected boolean blocked
protected final SimpleString address
protected int arriving
protected boolean serverRespondedWithFail
protected SessionContext sessionContext
public AbstractProducerCreditsImpl(ClientSessionInternal session, SimpleString address, int windowSize)
public SimpleString getAddress()
getAddress
in interface ClientProducerCredits
public void init(SessionContext sessionContext)
init
in interface ClientProducerCredits
public void acquireCredits(int credits) throws ActiveMQException
acquireCredits
in interface ClientProducerCredits
ActiveMQException
protected void afterAcquired(int credits) throws ActiveMQAddressFullException
ActiveMQAddressFullException
protected abstract void actualAcquire(int credits)
public boolean isBlocked()
isBlocked
in interface ClientProducerCredits
public void receiveFailCredits(int credits)
receiveFailCredits
in interface ClientProducerCredits
public void receiveCredits(int credits)
receiveCredits
in interface ClientProducerCredits
public void reset()
reset
in interface ClientProducerCredits
public void close()
close
in interface ClientProducerCredits
public void incrementRefCount()
incrementRefCount
in interface ClientProducerCredits
public int decrementRefCount()
decrementRefCount
in interface ClientProducerCredits
public abstract int getBalance()
protected void checkCredits(int credits)
Copyright © 2019 JBoss by Red Hat. All rights reserved.