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

com.mx.path.model.mdx.accessor.StatusBaseAccessor Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package com.mx.path.model.mdx.accessor;

import com.mx.path.core.common.accessor.API;
import com.mx.path.core.common.accessor.AccessorMethodNotImplementedException;
import com.mx.path.core.common.accessor.PathResponseStatus;
import com.mx.path.core.common.gateway.GatewayAPI;
import com.mx.path.gateway.accessor.Accessor;
import com.mx.path.gateway.accessor.AccessorConfiguration;
import com.mx.path.gateway.accessor.AccessorResponse;

/**
 * Accessor base for upstream system status
 *
 * 

Returns {@link PathResponseStatus#NO_CONTENT} if all is well. * *

Returns {@link PathResponseStatus#UNAVAILABLE} if upstream system is unavailable * *

Returns {@link PathResponseStatus#TIMEOUT} if upstream system not responsive or circuit breaker is open */ @API(description = "Returns system status") public abstract class StatusBaseAccessor extends Accessor { public StatusBaseAccessor() { } /** * @param configuration * @deprecated Use the default constructor, the configuration is set by the accessor construction context code */ @Deprecated public StatusBaseAccessor(AccessorConfiguration configuration) { super(configuration); } /** * Get upstream system status * * @return */ @GatewayAPI @API(description = "Get upstream system status") public AccessorResponse get() { throw new AccessorMethodNotImplementedException(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy