All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.split.client.events.NoopEventsStorageImp Maven / Gradle / Ivy

The newest version!
package io.split.client.events;


import io.split.client.dtos.Event;

import java.util.ArrayList;
import java.util.List;

public class NoopEventsStorageImp implements EventsStorage {

    @Override
    public boolean track(Event event, int eventSize) {
        return true;
    }

    public static NoopEventsStorageImp create() {
        return new NoopEventsStorageImp();
    }

    @Override
    public WrappedEvent pop() {
        return new WrappedEvent(new Event(), 0l);
    }

    @Override
    public List popAll() {
        //no-op
        return new ArrayList<>();
    }

    @Override
    public boolean isFull() {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy