1 18 19 package org.apache.activemq.store; 20 21 import java.io.IOException ; 22 23 import org.apache.activemq.broker.ConnectionContext; 24 import org.apache.activemq.command.MessageId; 25 26 32 public interface ReferenceStore extends MessageStore { 33 34 public class ReferenceData { 35 long expiration; 36 int fileId; 37 int offset; 38 39 public long getExpiration() { 40 return expiration; 41 } 42 public void setExpiration(long expiration) { 43 this.expiration = expiration; 44 } 45 public int getFileId() { 46 return fileId; 47 } 48 public void setFileId(int file) { 49 this.fileId = file; 50 } 51 public int getOffset() { 52 return offset; 53 } 54 public void setOffset(int offset) { 55 this.offset = offset; 56 } 57 58 @Override 59 public String toString() { 60 return "ReferenceData fileId="+fileId+", offset="+offset+", expiration="+expiration; 61 } 62 } 63 64 67 public void addMessageReference(ConnectionContext context, MessageId messageId, ReferenceData data) throws IOException ; 68 69 73 public ReferenceData getMessageReference(MessageId identity) throws IOException ; 74 75 78 public boolean supportsExternalBatchControl(); 79 80 public void setBatch(MessageId startAfter); 81 82 } 83 | Popular Tags |