ARTEMIS-3049 Simplify PagePosition API
This commit is contained in:
parent
54b0094cd6
commit
22dbeb8022
|
@ -34,8 +34,6 @@ public interface PagePosition extends Comparable<PagePosition> {
|
|||
|
||||
void setPersistentSize(long persistentSize);
|
||||
|
||||
PagePosition nextMessage();
|
||||
|
||||
PagePosition nextPage();
|
||||
|
||||
}
|
||||
|
|
|
@ -126,11 +126,6 @@ public class PagePositionImpl implements PagePosition {
|
|||
} else return Long.compare(recordID, o.getRecordID());
|
||||
}
|
||||
|
||||
@Override
|
||||
public PagePosition nextMessage() {
|
||||
return new PagePositionImpl(this.pageNr, this.messageNr + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PagePosition nextPage() {
|
||||
return new PagePositionImpl(this.pageNr + 1, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue