# The Java Embedded Database Class Device

Device defines an eXtremeDB memory device.

### For an overview see page Java Database Class

### Class Definitions

        public abstract static class Device
        {
            public enum Kind
            {
                Data,
                DiskCache,
                TransactionLog,
                AsyncBuffer,
                PipeBuffer
            };

            protected Device(Kind kind)
            {
                this.kind = kind.ordinal();
            }

            int kind;
        };

### Definitions:

All memory device instances are of a specific subclass of Device whose constructor provides the enumerated value of `kind` defined as follows:

`Data` | Used for database data (disk or memory)
`DiskCache` | Used for the disk cache
`TransactionLog` | Used for the transaction log
`AsyncBuffer` | Used as the asynchronous buffer for eXtremeDB High Availability applications
`PipeBuffer` | Used as the pipe buffer for eXtremeDB Transaction Logging applications