com.urbanairship.connect.client.offsets.InMemOffsetManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-client Show documentation
Show all versions of connect-client Show documentation
The UA Connect Java client library
/*
Copyright 2015 Urban Airship and Contributors
*/
package com.urbanairship.connect.client.offsets;
import com.google.common.base.Optional;
import java.util.concurrent.atomic.AtomicReference;
public class InMemOffsetManager implements OffsetManager {
private final AtomicReference offset = new AtomicReference<>(null);
public InMemOffsetManager() {}
@Override
public Optional getLastOffset() {
return Optional.fromNullable(offset.get());
}
@Override
public void update(String offset) {
this.offset.set(offset);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy