Mark (ActiveMQ 1.1 API)
Keywords: org.codehaus.activemq.journal.impl.Mark class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.journal.impl
Class Mark

    java.lang.Object
      org.codehaus.activemq.journal.impl.Mark

class Mark
extends Object

Serializes/Deserializes Mark records. When a mark is set in the journal, a Mark record must be journaled so that on restart the Journal knows what was the last mark.

Version:
  $Revision: 1.1 $

Field Summary
`static int` | `MARK_RECORD_SIZE`
`int` | `offsetId`
`long` | `sequenceId`

Constructor Summary
`Mark()`
`Mark(RecordLocationImpl location)`

Method Summary
`void` | `copy(Mark mark)`
`void` | `readExternal(byte[] data)`
`byte[]` | `writeExternal()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### MARK_RECORD_SIZE

    public static final int MARK_RECORD_SIZE

See Also:
  Constant Field Values

### sequenceId

    public long sequenceId

### offsetId

    public int offsetId

Constructor Detail

### Mark

    public Mark()

### Mark

    public Mark(RecordLocationImpl location)

Method Detail

### writeExternal

    public byte[] writeExternal()
                         throws IOException

  Throws:
    `IOException`

### readExternal

    public void readExternal(byte[] data)
                      throws IOException

  Throws:
    `IOException`

### copy

    public void copy(Mark mark)

  Parameters:
    `mark` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.