
pl.allegro.tech.hermes.management.domain.owner.PlaintextOwnerSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.domain.owner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import pl.allegro.tech.hermes.api.Owner;
@Component
@Order(PlaintextOwnerSource.ORDER)
public class PlaintextOwnerSource implements OwnerSource {
public static final int ORDER = 0;
public static final String NAME = "Plaintext";
@Override
public String name() {
return NAME;
}
@Override
public boolean exists(String ownerId) {
return true;
}
@Override
public Owner get(String id) throws OwnerNotFound {
return new Owner(id, id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy