/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as s}from"tslib";import{property as e,subclass as t}from"../../core/accessorSupport/decorators.js";import o from"./FeatureLikeLayerView.js";let i=class extends o{constructor(){super(...arguments),this._isUserPaused=!1}get connectionStatus(){return(this._isUserPaused||this.suspended)&&"connected"===this._streamConnectionStatus?"paused":this._streamConnectionStatus}resume(){this._isUserPaused=!1,this.suspended||this._doResume()}pause(){this._isUserPaused=!0,this.suspended||this._doPause()}disconnect(){this._doDisconnect()}connect(){this._doConnect()}clear(){this._doClear()}_onSuspendedChange(s){s?this._doPause():this._isUserPaused||this._doResume()}};s([e()],i.prototype,"_isUserPaused",void 0),s([e({readOnly:!0})],i.prototype,"connectionStatus",null),i=s([t("esri.views.layers.StreamLayerView")],i);export{i as default};
