01: /**
02: * Copyright Mobixess Inc. 2007
03: */package com.mobixess.jodb.core.io;
04:
05: import java.io.IOException;
06:
07: public interface IOTicket {
08: void lock(boolean write) throws IOException;
09:
10: void lock(boolean write, long offset) throws IOException;
11:
12: void unlock();
13:
14: IOBase getBase();
15:
16: IRandomAccessDataBuffer getRandomAccessBuffer();
17:
18: void close() throws IOException;
19:
20: int getTicketIdentity() throws IOException;
21:
22: }
|