Top Fields Constructors Methods
org.javamoney.moneta.spi.loader.okhttp

pack-priv Class OkHttpScheduler

extends Object
Class Inheritance
Imports
org.javamoney.moneta.spi.loader.LoaderListener, java.util.*, java.util.logging.Level, .Logger

Field Summary

Modifier and TypeField and Description
private final LoaderListener
private static final Logger
private final Timer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private TimerTask
public void
private List<GregorianCalendar>

Returns:

the parsed
parseDates
(String
the input text
value
)

Parse the dates of type HH:mm:ss:nnn, whereas minutes and smaller are optional.

private long

Returns:

the duration in ms.
parseDuration
(String
the input value
value
)

Parse a duration of the form HH:mm:ss:nnn, whereas only hours are non optional.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

listenerback to summary
private final LoaderListener listener
LOGback to summary
private static final Logger LOG
timerback to summary
private final Timer timer

Constructor Detail

OkHttpSchedulerback to summary
public OkHttpScheduler(Timer timer, LoaderListener listener)

Method Detail

createTimerTaskback to summary
private TimerTask createTimerTask(final LoadableHttpResource load)
executeback to summary
public void execute(final LoadableHttpResource load)
parseDatesback to summary
private List<GregorianCalendar> parseDates(String value)

Parse the dates of type HH:mm:ss:nnn, whereas minutes and smaller are optional.

Parameters
value:String

the input text

Returns:List<GregorianCalendar>

the parsed

parseDurationback to summary
private long parseDuration(String value)

Parse a duration of the form HH:mm:ss:nnn, whereas only hours are non optional.

Parameters
value:String

the input value

Returns:long

the duration in ms.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override