io.deepsense.neptune.clientlibrary.models.impl.channels.ChannelParamsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* Copyright (c) 2016, CodiLime Inc.
*/
package io.deepsense.neptune.clientlibrary.models.impl.channels;
import com.google.common.base.Preconditions;
import io.deepsense.neptune.clientlibrary.models.ChannelParams;
import io.deepsense.neptune.clientlibrary.models.ChannelType;
public class ChannelParamsImpl implements ChannelParams {
private final String name;
private final ChannelType type;
private final boolean isHistoryPersisted;
public ChannelParamsImpl(
String name,
ChannelType type,
boolean isHistoryPersisted) {
this.name = Preconditions.checkNotNull(name);
this.type = Preconditions.checkNotNull(type);
this.isHistoryPersisted = isHistoryPersisted;
}
@Override
public String getName() {
return name;
}
@Override
public ChannelType getType() {
return type;
}
@Override
public boolean isHistoryPersisted() {
return isHistoryPersisted;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy