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) |
void |
receiveCredits(SimpleString address,
int credits) |
void |
reset() |
void |
returnCredits(SimpleString address) |
int |
unReferencedCreditsSize() |
public static final int MAX_UNREFERENCED_CREDITS_CACHE_SIZE
public ClientProducerCreditManagerImpl(ClientSessionInternal session, int windowSize)
public ClientProducerCredits getCredits(SimpleString address, boolean anon)
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 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 © 2012 JBoss by Red Hat. All Rights Reserved.