io.vlingo.xoom.telemetry.plugin.mailbox.TelemetryMailboxProviderKeeper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xoom-telemetry Show documentation
Show all versions of xoom-telemetry Show documentation
The reactive metrics collector plugin for the VLINGO XOOM Platform, including support for VLINGO XOOM Actors, VLINGO XOOM Http, VLINGO XOOM Lattice, VLINGO XOOM Streams, and others.
// Copyright © 2012-2021 VLINGO LABS. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.
package io.vlingo.xoom.telemetry.plugin.mailbox;
import io.vlingo.xoom.actors.Mailbox;
import io.vlingo.xoom.actors.MailboxProvider;
import io.vlingo.xoom.actors.MailboxProviderKeeper;
public class TelemetryMailboxProviderKeeper implements MailboxProviderKeeper {
private final MailboxProviderKeeper delegate;
private final MailboxTelemetry telemetry;
public TelemetryMailboxProviderKeeper(final MailboxProviderKeeper delegate, final MailboxTelemetry telemetry) {
this.delegate = delegate;
this.telemetry = telemetry;
}
@Override
public Mailbox assignMailbox(final String name, final int hashCode) {
return delegate.assignMailbox(name, hashCode);
}
@Override
public void close() {
delegate.close();
}
@Override
public String findDefault() {
return delegate.findDefault();
}
@Override
public void keep(final String name, final boolean isDefault, final MailboxProvider mailboxProvider) {
delegate.keep(name, isDefault, new TelemetryMailboxProvider(telemetry, mailboxProvider));
}
@Override
public boolean isValidMailboxName(final String candidateMailboxName) {
return delegate.isValidMailboxName(candidateMailboxName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy