org.jboss.messaging.core.postoffice.impl
Class DuplicateIDCacheImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DuplicateIDCacheImpl
public DuplicateIDCacheImpl(SimpleString address,
int size,
StorageManager storageManager,
boolean persist)
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.