public class JodaTimezoneCache extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_EXPRIRE_TIME_MINUTES |
Constructor and Description |
---|
JodaTimezoneCache() |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.DateTimeZone |
getInstance(ByteBuffer timezoneId)
Returns joda's DateTimeZone instance from cache or create new instance and cache it.
|
static org.joda.time.DateTimeZone |
getInstance(ImmutableBytesWritable timezoneId)
Returns joda's DateTimeZone instance from cache or create new instance and cache it.
|
static org.joda.time.DateTimeZone |
getInstance(String timezoneId)
Returns joda's DateTimeZone instance from cache or create new instance and cache it.
|
public static final int CACHE_EXPRIRE_TIME_MINUTES
public static org.joda.time.DateTimeZone getInstance(ByteBuffer timezoneId)
timezoneId
- Timezone Id as accepted by DateTimeZone.forID()
. E.g. Europe/Isle_of_ManIllegalDataException
- if unknown timezone id is passedpublic static org.joda.time.DateTimeZone getInstance(ImmutableBytesWritable timezoneId)
timezoneId
- Timezone Id as accepted by DateTimeZone.forID()
. E.g. Europe/Isle_of_ManIllegalDataException
- if unknown timezone id is passedpublic static org.joda.time.DateTimeZone getInstance(String timezoneId)
timezoneId
- Timezone Id as accepted by DateTimeZone.forID()
. E.g. Europe/Isle_of_ManIllegalDataException
- if unknown timezone id is passedCopyright © 2019 Apache Software Foundation. All Rights Reserved.