public class ClientProducerCreditManagerImpl extends Object implements ClientProducerCreditManager
Modifier and Type | Field and Description |
---|---|
static int |
MAX_UNREFERENCED_CREDITS_CACHE_SIZE |
Constructor and Description |
---|
ClientProducerCreditManagerImpl(ClientSessionInternal session,
int windowSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
creditsMapSize() |
ClientProducerCredits |
getCredits(SimpleString address,
boolean anon,
SessionContext context) |
void |
receiveCredits(SimpleString address,
int credits) |
void |
receiveFailCredits(SimpleString address,
int credits) |
void |
reset() |
void |
returnCredits(SimpleString address) |
void |
setCallback(ClientProducerFlowCallback callback)
This will determine the flow control as asynchronous,
no actual block should happen instead a callback will be sent whenever blockages change
|
int |
unReferencedCreditsSize() |
public static final int MAX_UNREFERENCED_CREDITS_CACHE_SIZE
public ClientProducerCreditManagerImpl(ClientSessionInternal session, int windowSize)
public void setCallback(ClientProducerFlowCallback callback)
setCallback
in interface ClientProducerCreditManager
public ClientProducerCredits getCredits(SimpleString address, boolean anon, SessionContext context)
getCredits
in interface ClientProducerCreditManager
public void returnCredits(SimpleString address)
returnCredits
in interface ClientProducerCreditManager
public void receiveCredits(SimpleString address, int credits)
receiveCredits
in interface ClientProducerCreditManager
public void receiveFailCredits(SimpleString address, int credits)
receiveFailCredits
in interface ClientProducerCreditManager
public void reset()
reset
in interface ClientProducerCreditManager
public void close()
close
in interface ClientProducerCreditManager
public int creditsMapSize()
creditsMapSize
in interface ClientProducerCreditManager
public int unReferencedCreditsSize()
unReferencedCreditsSize
in interface ClientProducerCreditManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.