com.taobao.metamorphosis.server.store
类 Location

java.lang.Object
  继承者 com.taobao.metamorphosis.server.store.Location
直接已知子类:
JournalTransactionStore.AddMsgLocation

public class Location
extends Object

数据存入的位置

作者:
boyan(boyan@taobao.com)

字段摘要
static Location InvalidLocaltion
           
protected  int length
           
protected  long offset
           
 
构造方法摘要
protected Location(long offset, int length)
           
 
方法摘要
static Location create(long offset, int length)
           
 int getLength()
           
 long getOffset()
           
 boolean isValid()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

offset

protected final long offset

length

protected final int length

InvalidLocaltion

public static Location InvalidLocaltion
构造方法详细信息

Location

protected Location(long offset,
                   int length)
方法详细信息

create

public static Location create(long offset,
                              int length)

isValid

public boolean isValid()

getOffset

public long getOffset()

getLength

public int getLength()


Copyright © 2010–2013. All rights reserved.