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

com.github.grzesiek_galezowski.test_environment.buffer.interfaces.BufferObserver Maven / Gradle / Ivy

package com.github.grzesiek_galezowski.test_environment.buffer.interfaces;

import org.assertj.core.api.Condition;

import java.util.List;

/**
 * Created by grzes on 08.07.2017.
 */
public interface BufferObserver {

  void searchingStartedWithin(List receivedObjects, Condition condition);

  void tryingToMatch(T receivedObject, Condition condition);

  void matchAttemptSuccessful(
      T receivedObject,
      Condition condition,
      String matchDescription);

  void searchingFinishedWith(
      Throwable exception,
      T receivedObjectThatCausedException);

  void searchingFinished(long matchesCount);

  void matchAttemptFailed(
      T receivedObject,
      Condition condition,
      String matchDescription);

  void periodicPollingStarted();

  void singlePollStarted();

  void singlePollFinishedWith(boolean pollResult);

  void exceptionWhileNotifyingSubscriberAboutStoredItem(ItemSubscriber subscriber, T object);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy