A male contraception apparatus for obtaining a time-limited sterility of a male mammalian individual comprising: an implantable restriction device adapted to restrict the lumen of a vas deferens of the mammalian, and a controller operable to control the restriction device to restrict the lumen of the vas deferens during a controlled period to prevent sperms from reaching the urethra of the mammalian, wherein the restriction device comprises a stimulation device comprising at least one of an electrical element and a cooling element, configured to electrically or thermally stimulate a tissue wall of the vas deferens, to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is restricted, and characterized in that the controller comprises a control device adapted to control the stimulation device to: thermally, by cooling by the cooling element, stimulate the wall portion to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility, and/or electrically, by the electrical element, stimulate at least a first and a second area of the wall portion in sequence to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility. an implantable restriction device adapted to restrict the lumen of a vas deferens of the mammalian, and a controller operable to control the restriction device to restrict the lumen of the vas deferens during a controlled period to prevent sperms from reaching the urethra of the mammalian, wherein the restriction device comprises a stimulation device comprising at least one of an electrical element and a cooling element, configured to electrically or thermally stimulate a tissue wall of the vas deferens, to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is restricted, and characterized in that the controller comprises a control device adapted to control the stimulation device to: thermally, by cooling by the cooling element, stimulate the wall portion to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility, and/or electrically, by the electrical element, stimulate at least a first and a second area of the wall portion in sequence to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility. thermally, by cooling by the cooling element, stimulate the wall portion to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility, and/or electrically, by the electrical element, stimulate at least a first and a second area of the wall portion in sequence to cause contraction of the wall portion to restrict the lumen of the vas deferens such that the flow of sperms in the vas deferens is prevented from reaching the urethra, thereby obtaining a time-limited sterility. <EOS>