com.taobao.common.store
接口 Store

所有已知实现类:
JournalStore, MemStore, MessageStore

public interface Store

从以下版本开始:
1.0, 2009-12-11 上午11:17:22
作者:
boyan

方法摘要
 void add(byte[] key, byte[] data)
           
 void add(byte[] key, byte[] data, boolean force)
           
 void close()
           
 byte[] get(byte[] key)
           
 long getMaxFileCount()
           
 Iterator<byte[]> iterator()
           
 boolean remove(byte[] key)
           
 boolean remove(byte[] key, boolean force)
           
 void setMaxFileCount(long maxFileCount)
           
 int size()
           
 boolean update(byte[] key, byte[] data)
           
 

方法详细信息

add

void add(byte[] key,
         byte[] data)
         throws IOException
抛出:
IOException

add

void add(byte[] key,
         byte[] data,
         boolean force)
         throws IOException
抛出:
IOException

remove

boolean remove(byte[] key)
               throws IOException
抛出:
IOException

remove

boolean remove(byte[] key,
               boolean force)
               throws IOException
抛出:
IOException

get

byte[] get(byte[] key)
           throws IOException
抛出:
IOException

update

boolean update(byte[] key,
               byte[] data)
               throws IOException
抛出:
IOException

size

int size()

getMaxFileCount

long getMaxFileCount()

setMaxFileCount

void setMaxFileCount(long maxFileCount)

iterator

Iterator<byte[]> iterator()
                          throws IOException
抛出:
IOException

close

void close()
           throws IOException
抛出:
IOException


Copyright © 2010–2013. All rights reserved.