List of usage examples for com.fasterxml.jackson.databind.util ISO8601Utils parse
public static Date parse(String date)
From source file:com.amazonaws.services.dynamodbv2.replication.impl.BitSetMultiRegionCheckpoint.java
/** * Constructs a BitSetMultiRegionCheckpoint configured to require acks for every region/table pair specified in the * supplied ReplicationConfiguration. It is associated with the update identified by its sequence number. * * @param configuration/*from w w w.ja v a 2 s . c o m*/ * ReplicationConfiguration containing the region/table pairs from which this BitSetMultiRegionCheckpoint * will require acks * @param sequenceNumber * The unique identifier of the update to which this {@link BitSetMultiRegionCheckpoint} corresponds * @param createdTime * The time that users created the update and sent to the DynamoDB */ public BitSetMultiRegionCheckpoint(final ReplicationConfiguration configuration, final String sequenceNumber, final String createdTime) { this.sequenceNumber = sequenceNumber; // Map each table to a unique integer int index = 0; bitMap = new HashMap<String, Integer>(); latencyPerRegion = new HashMap<String, HashMap<String, Long>>(); for (final String region : configuration.getRegions()) { for (final String table : configuration.getTables(region)) { bitMap.put(getBitMapKey(region, table), index++); } latencyPerRegion.put(region, new HashMap<String, Long>()); } cardinality = index; bitSet = new BitSet(cardinality); if (createdTime != null) { this.createdTime = ISO8601Utils.parse(createdTime).getTime(); } else { this.createdTime = new Date().getTime(); } latency = Long.MAX_VALUE; }
From source file:org.activiti.app.rest.runtime.AbstractTaskQueryResource.java
private void handleDueBefore(TaskInfoQueryWrapper taskInfoQueryWrapper, JsonNode dueBeforeNode) { String date = dueBeforeNode.asText(); Date d = ISO8601Utils.parse(date); taskInfoQueryWrapper.getTaskInfoQuery().taskDueBefore(d); }
From source file:org.activiti.app.rest.runtime.AbstractTaskQueryResource.java
private void handleDueAfter(TaskInfoQueryWrapper taskInfoQueryWrapper, JsonNode dueAfterNode) { String date = dueAfterNode.asText(); Date d = ISO8601Utils.parse(date); taskInfoQueryWrapper.getTaskInfoQuery().taskDueAfter(d); }