/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2009 Oracle. All rights reserved. * */ using System; using System.Collections.Generic; using System.Text; namespace BerkeleyDB { /// /// Statistical information about a Sequence /// public class SequenceStats { private Internal.SequenceStatStruct st; internal SequenceStats(Internal.SequenceStatStruct stats) { st = stats; } /// /// Cache size. /// public int CacheSize { get { return st.st_cache_size; } } /// /// Current cached value. /// public long CachedValue { get { return st.st_value; } } /// /// Flag value. /// public uint Flags { get { return st.st_flags; } } /// /// Last cached value. /// public long LastCachedValue { get { return st.st_last_value; } } /// /// Sequence lock granted w/o wait. /// public ulong LockWait { get { return st.st_wait; } } /// /// Sequence lock granted after wait. /// public ulong LockNoWait { get { return st.st_nowait; } } /// /// Maximum value. /// public long Max { get { return st.st_max; } } /// /// Minimum value. /// public long Min { get { return st.st_min; } } /// /// Current value in db. /// public long StoredValue { get { return st.st_current; } } } }