org.jboss.messaging.core.postoffice.impl
Class DuplicateIDCacheImpl

java.lang.Object
  extended by org.jboss.messaging.core.postoffice.impl.DuplicateIDCacheImpl
All Implemented Interfaces:
DuplicateIDCache

public class DuplicateIDCacheImpl
extends java.lang.Object
implements DuplicateIDCache

A DuplicateIDCacheImpl A fixed size rotating cache of last X duplicate ids.

Author:
Tim Fox Created 8 Dec 2008 16:35:55

Constructor Summary
DuplicateIDCacheImpl(SimpleString address, int size, StorageManager storageManager, boolean persist)
           
 
Method Summary
 void addToCache(byte[] duplID, Transaction tx)
           
 boolean contains(byte[] duplID)
           
 void load(java.util.List<Pair<byte[],java.lang.Long>> theIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateIDCacheImpl

public DuplicateIDCacheImpl(SimpleString address,
                            int size,
                            StorageManager storageManager,
                            boolean persist)
Method Detail

load

public void load(java.util.List<Pair<byte[],java.lang.Long>> theIds)
          throws java.lang.Exception
Specified by:
load in interface DuplicateIDCache
Throws:
java.lang.Exception

contains

public boolean contains(byte[] duplID)
Specified by:
contains in interface DuplicateIDCache

addToCache

public void addToCache(byte[] duplID,
                       Transaction tx)
                throws java.lang.Exception
Specified by:
addToCache in interface DuplicateIDCache
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.